Hide non-owner actions for backup sites
This commit is contained in:
@@ -157,17 +157,21 @@ function onActionMenu(site, event) {
|
||||
actionMenuModel.value = [{
|
||||
icon: 'fa-solid fa-box-open',
|
||||
label: t('backups.contentAction'),
|
||||
visible: profile.value.isAtLeastOwner,
|
||||
action: onEditContent.bind(null, site),
|
||||
}, {
|
||||
icon: 'fa-solid fa-clock',
|
||||
label: t('backups.schedule.title'),
|
||||
visible: profile.value.isAtLeastOwner,
|
||||
action: onEditSchedule.bind(null, site),
|
||||
}, {
|
||||
icon: 'fa-solid fa-screwdriver-wrench',
|
||||
label: t('backups.configAction'),
|
||||
visible: profile.value.isAtLeastOwner,
|
||||
action: onEditConfig.bind(null, site),
|
||||
}, {
|
||||
separator: true
|
||||
visible: profile.value.isAtLeastOwner,
|
||||
separator: true,
|
||||
}, {
|
||||
icon: 'fa-solid fa-plus',
|
||||
label: t('backups.listing.backupNow'),
|
||||
@@ -182,10 +186,12 @@ function onActionMenu(site, event) {
|
||||
visible: site.provider === 'sshfs' || site.provider === 'cifs' || site.provider === 'nfs' || site.provider === 'ext4' || site.provider === 'xfs',
|
||||
action: onRemount.bind(null, site),
|
||||
}, {
|
||||
visible: profile.value.isAtLeastOwner,
|
||||
separator: true,
|
||||
}, {
|
||||
icon: 'fa-solid fa-trash',
|
||||
label: t('volumes.removeVolumeDialog.removeAction'),
|
||||
visible: profile.value.isAtLeastOwner,
|
||||
action: onRemoveSite.bind(null, site),
|
||||
}];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user