This commit is contained in:
@@ -111,6 +111,9 @@ export default {
|
||||
userId: window.$gz.store.state.userId,
|
||||
created: window.$gz.locale.nowUTC8601String()
|
||||
});
|
||||
//flag header itself as dirty
|
||||
this.value.isDirty = true;
|
||||
//flag form dirty
|
||||
this.pvm.formState.dirty = true;
|
||||
}
|
||||
},
|
||||
@@ -127,31 +130,6 @@ export default {
|
||||
hasState() {
|
||||
return this.value.states != null && this.value.states.length > 0;
|
||||
},
|
||||
// currentState() {
|
||||
// //return actual status object from top level shell based on current state
|
||||
// //if state is unknown then it should return a placeholder dummy state showing an error condition or empty I guess
|
||||
|
||||
// if (this.value.states != null) {
|
||||
// //find it in the status collection
|
||||
// //and return here
|
||||
// let laststate = this.value.states[this.value.states.length - 1];
|
||||
// let found = this.pvm.selectLists.wostatus.find(
|
||||
// z => z.id == laststate.workOrderStatusId
|
||||
// );
|
||||
// if (found) {
|
||||
// return found;
|
||||
// }
|
||||
// }
|
||||
// //default
|
||||
// return {
|
||||
// id: 0,
|
||||
// name: "NOT SET YET",
|
||||
// active: true,
|
||||
// color: "#ffffff", //invisible
|
||||
// completed: false,
|
||||
// locked: false
|
||||
// };
|
||||
// },
|
||||
canAdd: function() {
|
||||
//first check most obvious disqualifying properties
|
||||
if (!this.pvm.rights.change || !this.pvm.subRights.states.create) {
|
||||
|
||||
Reference in New Issue
Block a user