]>
git.proxmox.com Git - proxmox-backup.git/blob - www/DirectoryList.js
1 Ext
.define('PBS.admin.Directorylist', {
2 extend
: 'Ext.grid.Panel',
3 xtype
: 'pbsDirectoryList',
6 stateId
: 'grid-node-directory',
8 emptyText
: gettext('No Mount-Units found'),
11 xclass
: 'Ext.app.ViewController',
13 createDirectory: function() {
15 Ext
.create('PBS.window.CreateDirectory', {
26 let store
= me
.getView().getStore();
31 init: function(view
) {
33 Proxmox
.Utils
.monStoreErrors(view
, view
.getStore(), true);
44 text
: gettext('Reload'),
45 iconCls
: 'fa fa-refresh',
49 text
: gettext('Create') + ': Directory',
50 handler
: 'createDirectory',
56 text
: gettext('Path'),
61 header
: gettext('Device'),
66 header
: gettext('Filesystem'),
68 dataIndex
: 'filesystem',
71 header
: gettext('Options'),
76 header
: gettext('Unit File'),
78 dataIndex
: 'unitfile',
83 fields
: ['path', 'device', 'filesystem', 'options', 'unitfile'],
86 url
: '/api2/json/nodes/localhost/disks/directory',