This commit is contained in:
@@ -15,7 +15,6 @@ ____________
|
|||||||
##########################
|
##########################
|
||||||
|
|
||||||
|
|
||||||
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: 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
|
||||||
|
|||||||
@@ -72,6 +72,8 @@
|
|||||||
:disable-pagination="true"
|
:disable-pagination="true"
|
||||||
:disable-filtering="true"
|
:disable-filtering="true"
|
||||||
hide-default-footer
|
hide-default-footer
|
||||||
|
:sort-by="['created']"
|
||||||
|
:sort-desc="[true]"
|
||||||
>
|
>
|
||||||
<template v-slot:item.actions="{ item }">
|
<template v-slot:item.actions="{ item }">
|
||||||
<v-btn icon :href="item.url">
|
<v-btn icon :href="item.url">
|
||||||
|
|||||||
@@ -2,28 +2,27 @@
|
|||||||
<v-row v-if="this.formState.ready">
|
<v-row v-if="this.formState.ready">
|
||||||
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
|
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
|
||||||
<v-col cols="12">
|
<v-col cols="12">
|
||||||
<v-btn @click="getDataFromApi">
|
<v-btn @click="getDataFromApi" class="mb-6">
|
||||||
<v-icon>fa-sync</v-icon>
|
<v-icon>fa-sync</v-icon>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-simple-table>
|
<v-data-table
|
||||||
<template v-slot:default>
|
:headers="headers"
|
||||||
<thead>
|
:items="obj"
|
||||||
<tr>
|
class="elevation-1"
|
||||||
<th class="text-left">{{ $ay.t("TimeStamp") }}</th>
|
:disable-pagination="true"
|
||||||
<th class="text-left">{{ $ay.t("ID") }}</th>
|
:disable-filtering="true"
|
||||||
<th class="text-left">{{ $ay.t("Status") }}</th>
|
hide-default-footer
|
||||||
</tr>
|
:sort-by="['created']"
|
||||||
</thead>
|
:sort-desc="[true]"
|
||||||
<tbody>
|
>
|
||||||
<tr v-for="item in obj" :key="item.id">
|
<template v-slot:item.actions="{ item }">
|
||||||
<td>{{ item.created }}</td>
|
<v-btn icon :href="item.url">
|
||||||
<td>{{ item.jobId }}</td>
|
<v-icon small class="mr-2">
|
||||||
<td>{{ item.status }}</td>
|
fa-file-download
|
||||||
</tr>
|
</v-icon>
|
||||||
</tbody>
|
</v-btn>
|
||||||
</template>
|
</template></v-data-table
|
||||||
</v-simple-table>
|
>
|
||||||
<!-- </v-col> -->
|
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</template>
|
</template>
|
||||||
@@ -237,6 +236,7 @@ function clickHandler(menuItem) {
|
|||||||
//
|
//
|
||||||
async function initForm(vm) {
|
async function initForm(vm) {
|
||||||
await fetchTranslatedText(vm);
|
await fetchTranslatedText(vm);
|
||||||
|
await createTableHeaders(vm);
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////
|
||||||
@@ -251,4 +251,15 @@ async function fetchTranslatedText(vm) {
|
|||||||
"Status"
|
"Status"
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//////////////////////
|
||||||
|
//
|
||||||
|
//
|
||||||
|
async function createTableHeaders(vm) {
|
||||||
|
vm.headers = [
|
||||||
|
{ text: vm.$ay.t("TimeStamp"), value: "created" },
|
||||||
|
{ text: vm.$ay.t("Status"), value: "status" },
|
||||||
|
{ text: vm.$ay.t("ID"), value: "jobId" }
|
||||||
|
];
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user