backup site: make config the first option
This commit is contained in:
@@ -160,6 +160,11 @@ const actionMenuModel = ref([]);
|
|||||||
const actionMenuElement = useTemplateRef('actionMenuElement');
|
const actionMenuElement = useTemplateRef('actionMenuElement');
|
||||||
function onActionMenu(site, event) {
|
function onActionMenu(site, event) {
|
||||||
actionMenuModel.value = [{
|
actionMenuModel.value = [{
|
||||||
|
icon: 'fa-solid fa-screwdriver-wrench',
|
||||||
|
label: t('backups.configAction'),
|
||||||
|
visible: profile.value.isAtLeastOwner,
|
||||||
|
action: onEditConfig.bind(null, site),
|
||||||
|
}, {
|
||||||
icon: 'fa-solid fa-box-open',
|
icon: 'fa-solid fa-box-open',
|
||||||
label: t('backups.contentAction'),
|
label: t('backups.contentAction'),
|
||||||
visible: profile.value.isAtLeastOwner,
|
visible: profile.value.isAtLeastOwner,
|
||||||
@@ -169,11 +174,6 @@ function onActionMenu(site, event) {
|
|||||||
label: t('backups.schedule.title'),
|
label: t('backups.schedule.title'),
|
||||||
visible: profile.value.isAtLeastOwner,
|
visible: profile.value.isAtLeastOwner,
|
||||||
action: onEditSchedule.bind(null, site),
|
action: onEditSchedule.bind(null, site),
|
||||||
}, {
|
|
||||||
icon: 'fa-solid fa-screwdriver-wrench',
|
|
||||||
label: t('backups.configAction'),
|
|
||||||
visible: profile.value.isAtLeastOwner,
|
|
||||||
action: onEditConfig.bind(null, site),
|
|
||||||
},{
|
},{
|
||||||
visible: profile.value.isAtLeastOwner,
|
visible: profile.value.isAtLeastOwner,
|
||||||
separator: true,
|
separator: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user