This commit is contained in:
@@ -44,7 +44,7 @@ todo: Localize this message or get rid of it, it's annoying and possibly useless
|
|||||||
|
|
||||||
##########################
|
##########################
|
||||||
todo: ops backup file list not in order by date, seems to be random or something, I want newest at top oldest at bottom
|
todo: ops backup file list not in order by date, seems to be random or something, I want newest at top oldest at bottom
|
||||||
|
todo: any use of simple-table sb turned into data-table see how it's done in ops-notify-queue, pretty straightforward and you get responsiveness and sorting built in
|
||||||
todo: go over server logging and rethink it a bit, levels maybe need adjusting, more debug and less trace
|
todo: go over server logging and rethink it a bit, levels maybe need adjusting, more debug and less trace
|
||||||
need an intermediate mode where users can set it for diagnosing issues
|
need an intermediate mode where users can set it for diagnosing issues
|
||||||
for example, should always log when notification delivery fails, but when it succeeds that might be a debug level , not a trace level
|
for example, should always log when notification delivery fails, but when it succeeds that might be a debug level , not a trace level
|
||||||
|
|||||||
@@ -348,7 +348,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
//this can be safely called any time, it checks if there is an open object in store and
|
//this can be safely called any time, it checks if there is an open object in store and
|
||||||
//opens it or if not just returns
|
//opens it or if not just returns
|
||||||
// window.$gz.eventBus.$emit("openobject", null);
|
// window.$gz.eventBus.$emit("openobject", null);
|
||||||
}
|
}
|
||||||
|
|
||||||
//RELOAD / REFRESH HANDLING
|
//RELOAD / REFRESH HANDLING
|
||||||
|
|||||||
@@ -5,33 +5,21 @@
|
|||||||
<v-btn @click="getDataFromApi">
|
<v-btn @click="getDataFromApi">
|
||||||
<v-icon>fa-sync</v-icon>
|
<v-icon>fa-sync</v-icon>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-simple-table>
|
|
||||||
<template v-slot:default>
|
<v-data-table
|
||||||
<thead>
|
:headers="headers"
|
||||||
<tr>
|
:items="obj"
|
||||||
<th class="text-left">{{ $ay.t("TimeStamp") }}</th>
|
class="elevation-1"
|
||||||
<th class="text-left">{{ $ay.t("DeliverAfter") }}</th>
|
:disable-pagination="true"
|
||||||
<th class="text-left">{{ $ay.t("NotifyEventType") }}</th>
|
:disable-filtering="true"
|
||||||
<th class="text-left">{{ $ay.t("AyaType") }}</th>
|
hide-default-footer
|
||||||
<th class="text-left">{{ $ay.t("Name") }}</th>
|
>
|
||||||
<th class="text-left">{{ $ay.t("User") }}</th>
|
<template v-slot:item.actions="{ item }">
|
||||||
</tr>
|
<v-icon small class="mr-2" @click="deleteItem(item)">
|
||||||
</thead>
|
fa-trash
|
||||||
<tbody>
|
</v-icon>
|
||||||
<tr v-for="item in obj" :key="item.id">
|
</template></v-data-table
|
||||||
<td>{{ item.created }}</td>
|
>
|
||||||
<td>{{ item.deliverAfter }}</td>
|
|
||||||
<td>{{ item.eventType }}</td>
|
|
||||||
<td>{{ item.ayaType }}</td>
|
|
||||||
<td>{{ item.name }}</td>
|
|
||||||
<td>{{ item.user }}</td>
|
|
||||||
<td>
|
|
||||||
<v-btn icon><v-icon>fa-trash</v-icon></v-btn>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</template>
|
|
||||||
</v-simple-table>
|
|
||||||
<!-- </v-col> -->
|
<!-- </v-col> -->
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
@@ -67,6 +55,19 @@ export default {
|
|||||||
return {
|
return {
|
||||||
obj: [],
|
obj: [],
|
||||||
rawObj: [],
|
rawObj: [],
|
||||||
|
headers: [
|
||||||
|
{
|
||||||
|
text: this.$ay.t("TimeStamp"),
|
||||||
|
align: "start",
|
||||||
|
value: "created"
|
||||||
|
},
|
||||||
|
{ text: this.$ay.t("DeliverAfter"), value: "deliverAfter" },
|
||||||
|
{ text: this.$ay.t("NotifyEventType"), value: "eventType" },
|
||||||
|
{ text: this.$ay.t("AyaType"), value: "ayaType" },
|
||||||
|
{ text: this.$ay.t("Name"), value: "name" },
|
||||||
|
{ text: this.$ay.t("User"), value: "user" },
|
||||||
|
{ text: "", value: "actions", sortable: false }
|
||||||
|
],
|
||||||
formState: {
|
formState: {
|
||||||
ready: false,
|
ready: false,
|
||||||
loading: true,
|
loading: true,
|
||||||
@@ -86,6 +87,7 @@ export default {
|
|||||||
window.$gz.eventBus.$off("menu-click", clickHandler);
|
window.$gz.eventBus.$off("menu-click", clickHandler);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
deleteItem(item) {},
|
||||||
async getDataFromApi() {
|
async getDataFromApi() {
|
||||||
let vm = this;
|
let vm = this;
|
||||||
vm.formState.loading = true;
|
vm.formState.loading = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user