This commit is contained in:
2020-07-28 21:00:51 +00:00
parent 2c850d68ab
commit 65e3540b59
7 changed files with 59 additions and 29 deletions

View File

@@ -608,6 +608,19 @@ async function clickHandler(menuItem) {
});
}
break;
case "directnotify":
//nav to direct notify with list of users appended to route
if (m.vm.obj.id == 0) {
m.vm.$router.push({
name: "home-notify-direct"
});
} else {
m.vm.$router.push({
name: "home-notify-direct",
params: { userIdList: m.vm.obj.id }
});
}
break;
default:
window.$gz.eventBus.$emit(
"notify-warning",
@@ -692,6 +705,13 @@ function generateMenu(vm) {
});
}
menuOptions.menuItems.push({
title: "DirectNotification",
icon: "fa-comment-alt",
key: FORM_KEY + ":directnotify",
vm: vm
});
window.$gz.eventBus.$emit("menu-change", menuOptions);
}