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

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