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