This commit is contained in:
2019-06-20 20:54:32 +00:00
parent b409e456e7
commit 0dfcc94862
5 changed files with 10 additions and 12 deletions

View File

@@ -76,9 +76,7 @@ DONE: For form initialization modify widget edit make an simple init call for on
DONE: Turn widget edit ROLES into a static select populated from server
- Use the enumpicklist route to get a list of roles and use it for the widget UI
DONE: Widget - NOTES FIELD
TODO: TAGS!!!
- Adding a new tag doesn't flag the record as dirty! (selecting does though)
- Layout: tags seems to buried into the rest of the form fields, maybe needs more whitespace around it, or a box
TODO: TAGS!!!
- COMPONENTIZE
- Could auto-insert tags in suggestion list like the current year or month or year/month/day or user name or ??

View File

@@ -61,10 +61,10 @@ export default {
//check pre-requisites exist just in case
if (this.$gzdevmode()) {
if (!this.$dayjs) {
throw "GzDateAndTimePicker: the DayJS library is required and missing";
throw "DateTimeControl: the DayJS library is required and missing";
}
if (!this.$gzlocale) {
throw "GzDateAndTimePicker: $gzlocale is required and missing";
throw "DateTimeControl: $gzlocale is required and missing";
}
}
},

View File

View File

@@ -28,7 +28,7 @@ import gzform from "./api/gzform";
import roles from "./api/authorizationroles";
import gztype from "./api/ayatype";
import "@/assets/css/main.css";
import gzdateandtimepicker from "./components/gzdateandtimepicker.vue";
import dateTimeControl from "./components/date-time-control.vue";
/////////////////////////////////////////////////////////////////
// LIBS AND GLOBAL ITEMS
@@ -147,7 +147,7 @@ Vue.filter("boolastext", function vueFilterBoolAsText(value) {
/////////////////////////////////////////////////////////////
//GZ COMPONENTS
//
Vue.component("gz-date-time-picker", gzdateandtimepicker);
Vue.component("gz-date-time-picker", dateTimeControl);
////////////////////////////////////////////////////////
//3rd party ui components

View File

@@ -563,16 +563,16 @@ export default {
}
},
addTag() {
//todo: clean the tag to server standards first so it's de-duped in the record
var theTag = this.tagSearchEntry;
theTag = this.$gzutil.normalizeTag(theTag);
//make sure there are no existing of the same tag
//make sure there are no existing of the same tag?
this.pickLists.tags.push(theTag);
this.obj.tags.push(theTag);
this.tagSearchEntry = "";
//add tags to existing picklist so that it contains all the unique tags ever searched for or present in the object
//vm.pickLists.tags+=tags
//vm.pickLists.tags=uniqueonly(vm.pickLists.tags)
this.$gzform.setFormState({
vm: this,
dirty: true
});
}
}
};