This commit is contained in:
2021-02-04 16:21:24 +00:00
parent 8a5e5e04c5
commit e4ad614570
3 changed files with 14 additions and 28 deletions

View File

@@ -12,14 +12,14 @@ LISTVIEW REPLACE CURRENT <----HERE not THERE ---v
TODO (now)
CLIENT
Filter manager - implement RESET functionality
maybe delete is the reset? Just shows reset but actually calls delete route same
server handles as reset situation instead of outright delete
Implement code to ensure default filter is selected when no last filter in session
store last filterid in session if not already so survives a full page refresh?
Implement code to load saved filters, refresh them on edit in filtermanager
CLIENT
Translation keys
Add the missing keys to server or find a suitable one to use
Reset, SaveCopy
pore over the translation keys in the filter manager, datatable and filter control
there are definitely some extra ones in there
"ListView" still referenced throughout data-table, possibly passed to selection dependent code (reports, bulk ops?)
@@ -28,15 +28,11 @@ LISTVIEW REPLACE CURRENT <----HERE not THERE ---v
Needs also to show a filter beside "headings" which are filtered so it's known
Or maybe if it's not too ugly filter on each one, nahh theres no room I think
Translation keys
Add the missing keys to server or find a suitable one to use
pore over the translation keys in the filter manager, datatable and filter control
there are definitely some extra ones in there
Mobile view
why does it not switch when switch widths and have to reset?
slowness
Why does initial grid load on full refresh go so slowly?
SERVER

View File

@@ -198,6 +198,7 @@ export default {
"Cancel",
"Close",
"Save",
"SaveACopy",
"Delete",
"Add",
"Replace",

View File

@@ -33,21 +33,15 @@
$ay.t("Cancel")
}}</v-btn>
<v-spacer />
<template v-if="activeFilter.defaultFilter == false && isSelfOwned">
<template v-if="isSelfOwned">
<v-btn text @click="deleteFilter()" color="primary">{{
$ay.t("Delete")
}}</v-btn>
<v-spacer />
</template>
<template v-if="activeFilter.defaultFilter == true">
<v-btn text @click="deleteFilter()" color="primary">{{
$ay.t("Reset")
}}</v-btn>
<v-spacer />
</template>
<v-btn text @click="saveAndExit(true)" color="primary">{{
$ay.t("SaveCopy")
$ay.t("SaveACopy")
}}</v-btn>
<template v-if="activeFilter.defaultFilter == false && isSelfOwned">
@@ -226,11 +220,6 @@ async function fetchActiveFilter(vm) {
// Ensures UI translated text is available
//
async function fetchTranslatedText(vm) {
await window.$gz.translation.cacheTranslations([
"GridFilterName",
"AnyUser",
"Copy",
"SaveAs"
]);
await window.$gz.translation.cacheTranslations(["GridFilterName", "AnyUser"]);
}
</script>