This commit is contained in:
2020-07-31 19:14:51 +00:00
parent 841f59926a
commit d21c03c576

View File

@@ -1,6 +1,7 @@
<template>
<div>
<v-data-table
v-model="selected"
:headers="headers"
:items="obj"
class="elevation-1"
@@ -8,6 +9,8 @@
:disable-filtering="true"
hide-default-footer
@click:row="rowClick"
:sort-by="['name']"
show-select
>
<template v-slot:item.active="{ item }">
<v-simple-checkbox v-model="item.active" disabled></v-simple-checkbox>
@@ -43,6 +46,7 @@ export default {
return {
obj: [],
headers: [],
selected: [],
formState: {
ready: false,
loading: true,
@@ -167,14 +171,14 @@ async function clickHandler(menuItem) {
break;
case "directnotify":
//nav to direct notify with list of users appended to route
if (m.vm.selectedItems.length == 0) {
if (m.vm.selected.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() }
params: { userIdList: m.vm.selected.map(z => z.id).toString() }
});
}
break;
@@ -228,12 +232,12 @@ function generateMenu(vm) {
vm: vm
});
menuOptions.menuItems.push({
title: "Extensions",
icon: "fa-puzzle-piece",
key: FORM_KEY + ":extensions",
vm: vm
});
// menuOptions.menuItems.push({
// title: "Extensions",
// icon: "fa-puzzle-piece",
// key: FORM_KEY + ":extensions",
// vm: vm
// });
menuOptions.menuItems.push({
title: "DirectNotification",