ui: acl: add improved permission selector

taken mostly from PVE, with adaption to how PBS does things.
Main difference is that we do not have a resource store singleton
here which we can use, but for datastores we can already use the
always present datastore-list store. Register it to the store manager
with a "storeId" property (vs. our internal storeid one).

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2020-07-25 20:10:06 +02:00
parent ee15af6bb8
commit d757021f4c
4 changed files with 77 additions and 1 deletions

View File

@ -7,6 +7,7 @@ Ext.define('PBS.window.ACLEdit', {
method: 'PUT',
isAdd: true,
isCreate: true,
width: 450,
// caller can give a static path
path: undefined,
@ -25,7 +26,7 @@ Ext.define('PBS.window.ACLEdit', {
items: [
{
xtype: 'pmxDisplayEditField',
xtype: 'pbsPermissionPathSelector',
fieldLabel: gettext('Path'),
cbind: {
editable: '{!path}',