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

@@ -77,8 +77,6 @@ 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 - Use the enumpicklist route to get a list of roles and use it for the widget UI
DONE: Widget - NOTES FIELD DONE: Widget - NOTES FIELD
TODO: TAGS!!! 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
- COMPONENTIZE - COMPONENTIZE
- Could auto-insert tags in suggestion list like the current year or month or year/month/day or user name or ?? - 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 //check pre-requisites exist just in case
if (this.$gzdevmode()) { if (this.$gzdevmode()) {
if (!this.$dayjs) { if (!this.$dayjs) {
throw "GzDateAndTimePicker: the DayJS library is required and missing"; throw "DateTimeControl: the DayJS library is required and missing";
} }
if (!this.$gzlocale) { 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 roles from "./api/authorizationroles";
import gztype from "./api/ayatype"; import gztype from "./api/ayatype";
import "@/assets/css/main.css"; import "@/assets/css/main.css";
import gzdateandtimepicker from "./components/gzdateandtimepicker.vue"; import dateTimeControl from "./components/date-time-control.vue";
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
// LIBS AND GLOBAL ITEMS // LIBS AND GLOBAL ITEMS
@@ -147,7 +147,7 @@ Vue.filter("boolastext", function vueFilterBoolAsText(value) {
///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////
//GZ COMPONENTS //GZ COMPONENTS
// //
Vue.component("gz-date-time-picker", gzdateandtimepicker); Vue.component("gz-date-time-picker", dateTimeControl);
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////
//3rd party ui components //3rd party ui components

View File

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