This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
data-cy="backupTable"
|
||||
>
|
||||
<template v-slot:[`item.actions`]="{ item }">
|
||||
<v-btn icon :href="item.url">
|
||||
<v-btn icon :href="item.url" v-if="item.url">
|
||||
<v-icon small class="mr-2">
|
||||
$ayiFileDownload
|
||||
</v-icon>
|
||||
@@ -105,7 +105,7 @@ export default {
|
||||
try {
|
||||
await initForm(vm);
|
||||
|
||||
vm.rights = window.$gz.role.getRights(window.$gz.type.GlobalOps);
|
||||
vm.rights = window.$gz.role.getRights(window.$gz.type.Backup);
|
||||
vm.formState.readOnly = !vm.rights.change;
|
||||
vm.formState.ready = true;
|
||||
window.$gz.eventBus.$on("menu-click", clickHandler);
|
||||
@@ -362,6 +362,7 @@ async function clickHandler(menuItem) {
|
||||
function generateMenu(vm) {
|
||||
let menuOptions = {
|
||||
isMain: true,
|
||||
readOnly: vm.formState.readOnly,
|
||||
icon: "$ayiFileArchive",
|
||||
title: "Backup",
|
||||
helpUrl: "form-ops-backup",
|
||||
|
||||
Reference in New Issue
Block a user