This commit is contained in:
2020-12-07 20:15:29 +00:00
parent 20652f9aaa
commit d42da74592
20 changed files with 48 additions and 28 deletions

View File

@@ -254,6 +254,7 @@ function clickHandler(menuItem) {
function generateMenu(vm) {
let menuOptions = {
isMain: false,
readOnly: vm.formState.readOnly,
icon: null,
title: "GlobalLogo",
helpUrl: "form-adm-global-logo",

View File

@@ -399,6 +399,7 @@ function clickHandler(menuItem) {
function generateMenu(vm) {
let menuOptions = {
isMain: false,
readOnly: vm.formState.readOnly,
icon: null,
title: "PickListTemplates",
helpUrl: "form-adm-global-select-templates",

View File

@@ -569,6 +569,7 @@ async function clickHandler(menuItem) {
function generateMenu(vm) {
let menuOptions = {
isMain: false,
readOnly: vm.formState.readOnly,
icon: "$ayiLanguage",
title: "Translation",
helpUrl: "form-adm-translation",

View File

@@ -952,6 +952,7 @@ async function clickHandler(menuItem) {
function generateMenu(vm) {
let menuOptions = {
isMain: false,
readOnly: vm.formState.readOnly,
icon: "$ayiUser",
title: "User",
helpUrl: "form-adm-user",

View File

@@ -275,6 +275,7 @@ function clickHandler(menuItem) {
function generateMenu(vm) {
let menuOptions = {
isMain: false,
readOnly: vm.formState.readOnly,
icon: "$ayiCustomize",
title: "Customize",
helpUrl: "form-ay-customize",

View File

@@ -903,6 +903,7 @@ function clickHandler(menuItem) {
function generateMenu(vm) {
let menuOptions = {
isMain: false,
readOnly: vm.formState.readOnly,
icon: "$ayiFilter",
title: "DataListView",
helpUrl: "form-ay-data-list-view",

View File

@@ -1010,6 +1010,7 @@ async function clickHandler(menuItem) {
function generateMenu(vm) {
let menuOptions = {
isMain: false,
readOnly: vm.formState.readOnly,
icon: "$ayiDraftingCompass",
title: "ReportDesignReport",
helpUrl: "form-ay-report-edit",

View File

@@ -436,6 +436,7 @@ async function clickHandler(menuItem) {
function generateMenu(vm) {
let menuOptions = {
isMain: false,
readOnly: vm.formState.readOnly,
icon: "$ayiClipboard",
title: "CustomerNoteNotes",
helpUrl: "form-customer-note",

View File

@@ -144,6 +144,7 @@ async function clickHandler(menuItem) {
function generateMenu(vm) {
let menuOptions = {
isMain: false,
readOnly: vm.formState.readOnly,
icon: "$ayiClipboard",
title: "CustomerNoteList",
helpUrl: "form-customer-notes",

View File

@@ -962,6 +962,7 @@ async function clickHandler(menuItem) {
function generateMenu(vm) {
let menuOptions = {
isMain: false,
readOnly: vm.formState.readOnly,
icon: "$ayiUser",
title: "Contact",
helpUrl: "form-cust-contact",

View File

@@ -628,6 +628,7 @@ async function clickHandler(menuItem) {
function generateMenu(vm) {
let menuOptions = {
isMain: false,
readOnly: vm.formState.readOnly,
icon: "$ayiBullhorn",
title: "NotifySubscription",
helpUrl: "form-home-notify-subscriptions",

View File

@@ -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",

View File

@@ -172,6 +172,7 @@ export default {
function generateMenu(vm) {
let menuOptions = {
isMain: true,
readOnly: vm.formState.readOnly,
icon: "$ayiRobot",
title: "ServerJobs",
helpUrl: "form-ops-jobs",

View File

@@ -167,7 +167,7 @@
/* Xeslint-disable */
////////////////////////////////////////////////////////////////////////////////////////////////////////////
const FORM_KEY = "ops-backup";
const FORM_KEY = "ops-notification-settings";
export default {
async created() {
@@ -175,7 +175,9 @@ 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.OpsNotificationSettings
);
vm.formState.readOnly = !vm.rights.change;
vm.formState.ready = true;
window.$gz.eventBus.$on("menu-click", clickHandler);
@@ -380,6 +382,7 @@ async function clickHandler(menuItem) {
function generateMenu(vm) {
let menuOptions = {
isMain: true,
readOnly: vm.formState.readOnly,
icon: "$ayiBullhorn",
title: "NotificationSettings",
helpUrl: "form-ops-notification-settings",

View File

@@ -183,6 +183,7 @@ export default {
function generateMenu(vm) {
let menuOptions = {
isMain: true,
readOnly: vm.formState.readOnly,
icon: "$ayiBullhorn",
title: "NotifyQueue",
helpUrl: "form-ops-notify-queue",

View File

@@ -248,6 +248,7 @@ async function clickHandler(menuItem) {
function generateMenu(vm) {
let menuOptions = {
isMain: true,
readOnly: vm.formState.readOnly,
icon: "$ayiDoorOpen",
title: "ServerState",
helpUrl: "form-ops-server-state",

View File

@@ -650,6 +650,7 @@ async function clickHandler(menuItem) {
function generateMenu(vm) {
let menuOptions = {
isMain: false,
readOnly: vm.formState.readOnly,
icon: "$ayiSplotch",
title: "Widget",
helpUrl: "form-widget",