github.com/aminovpavel/nomad@v0.11.8/ui/app/controllers/allocations/allocation/fs.js (about) 1 import Controller from '@ember/controller'; 2 import { computed } from '@ember/object'; 3 4 export default Controller.extend({ 5 queryParams: { 6 sortProperty: 'sort', 7 sortDescending: 'desc', 8 }, 9 10 sortProperty: 'Name', 11 sortDescending: false, 12 13 path: null, 14 allocation: null, 15 directoryEntries: null, 16 isFile: null, 17 stat: null, 18 19 pathWithLeadingSlash: computed('path', function() { 20 const path = this.path; 21 22 if (path.startsWith('/')) { 23 return path; 24 } else { 25 return `/${path}`; 26 } 27 }), 28 });