This commit is contained in:
@@ -42,14 +42,23 @@ CURRENT ROADMAP
|
||||
CURRENT TODOs
|
||||
=-=-=-=-=-=-=
|
||||
|
||||
TODO: Unsaved filter?
|
||||
- it triggers some issues making it the odd way out of doing things.
|
||||
- No way to edit existing filter
|
||||
- much fuckery in UI dealing with unsaved mode
|
||||
- takes up space saving it and could be the same all over the UI for all the other stuff ballooning the persisted data in localstorage
|
||||
|
||||
- original purpose was to save users live edits to filter when looking at grid
|
||||
- However, with raven it's a bit weird becuase there is no live edit really, you go into and out of anyway so should it force a save or not
|
||||
todo: keeping negative symbol when unsaved and duplicate
|
||||
- route replace shit not proper? (no)
|
||||
- how on earth does it work with a multi digit duplicate in widget edit form
|
||||
duplicate ok because it just goes to the new record
|
||||
it's really used only with a zero as the record id which is one digit so always works to replace
|
||||
since a listview can be -1 it needs to use the replace to last slash method it was using prior instead
|
||||
|
||||
TODO: when filter saved sb the one used when you return to the form no exceptions
|
||||
- right now it returns to the "unsaved", maybe it's not setting formsettings correctly on leave if saved
|
||||
|
||||
todo: default "df" thing isn't really working at the moment, I can remove the Name column from widgets and then I can't open a widget from teh grid
|
||||
- see if "df" has any purpose other than my initial though of an openable option for the record
|
||||
- if not, remove it entirely and make NAME a required field so it can't be removed from the view, moved, but not re-moved.
|
||||
|
||||
todo: when duplicate is inactive it looks the same, is it really being set inactive?
|
||||
- It's inactive if the dlv is dirty or invalid
|
||||
|
||||
todo: datalistview editor
|
||||
- showing options for wiki and attach etc, not required need to add override in gzmenu
|
||||
@@ -70,7 +79,7 @@ todo: tags in datatable display
|
||||
- In wide format the column is really narrow for some reason which is increasing the row height quite a bit
|
||||
- in wide format can the font be smaller if it's more than a certain number of items
|
||||
- in narrow it actually looks pretty good
|
||||
|
||||
|
||||
todo: custom fields that are not text in display
|
||||
- currently custom 1 which is a datetime field is not localized
|
||||
- are the other types of custom being handled properly
|
||||
|
||||
@@ -438,7 +438,6 @@ export default {
|
||||
var vm = this;
|
||||
if (this.formState.dirty && !JUST_DELETED) {
|
||||
//Put in unsaved listview
|
||||
//debugger;
|
||||
var formSettings = window.$gz.form.getFormSettings(vm.formKey);
|
||||
formSettings.saved.dataTable.unsavedListView = JSON.stringify(
|
||||
generateListViewFromEdited(vm)
|
||||
@@ -719,6 +718,12 @@ export default {
|
||||
submit() {
|
||||
if (this.canSave) {
|
||||
var vm = this;
|
||||
//check that "unsaved filter" is not the name
|
||||
//if it is, set it empty and force user to set a name
|
||||
if (vm.obj.name == vm.lt("FilterUnsaved")) {
|
||||
vm.obj.name = "";
|
||||
return;
|
||||
}
|
||||
vm.formState.loading = true;
|
||||
|
||||
var url = API_BASE_URL;
|
||||
@@ -762,7 +767,10 @@ export default {
|
||||
|
||||
//change url to new record
|
||||
vm.$router.replace(
|
||||
vm.$route.fullPath.slice(0, -1) + res.data.id
|
||||
window.$gz.api.replaceAfterLastSlash(
|
||||
vm.$route.fullPath,
|
||||
res.data.id
|
||||
)
|
||||
);
|
||||
} else {
|
||||
//Handle "put" of an existing record (UPDATE)
|
||||
|
||||
Reference in New Issue
Block a user