This commit is contained in:
@@ -66,6 +66,19 @@ async function clickHandler(menuItem) {
|
||||
case "extensions":
|
||||
let res = await m.vm.$refs.extensions.open();
|
||||
break;
|
||||
case "directnotify":
|
||||
//nav to direct notify with list of users appended to route
|
||||
if (m.vm.selectedItems.length == 0) {
|
||||
m.vm.$router.push({
|
||||
name: "home-notify-direct"
|
||||
});
|
||||
} else {
|
||||
m.vm.$router.push({
|
||||
name: "home-notify-direct",
|
||||
params: { userIdList: m.vm.selectedItems.toString() }
|
||||
});
|
||||
}
|
||||
break;
|
||||
default:
|
||||
window.$gz.eventBus.$emit(
|
||||
"notify-warning",
|
||||
@@ -123,6 +136,13 @@ function generateMenu(vm) {
|
||||
vm: vm
|
||||
});
|
||||
|
||||
menuOptions.menuItems.push({
|
||||
title: "DirectNotification",
|
||||
icon: "fa-comment-alt",
|
||||
key: FORM_KEY + ":directnotify",
|
||||
vm: vm
|
||||
});
|
||||
|
||||
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user