This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user