This commit is contained in:
@@ -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
|
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 ??
|
||||||
|
|
||||||
|
|||||||
@@ -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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
0
ayanova/src/components/tag-picker.vue
Normal file
0
ayanova/src/components/tag-picker.vue
Normal 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
|
||||||
|
|||||||
@@ -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
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user