This commit is contained in:
@@ -207,6 +207,14 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
isDeleted: function() {
|
||||
if (
|
||||
this.value.items[this.activeWoItemIndex].scheduledUsers[
|
||||
this.activeItemIndex
|
||||
] == null
|
||||
) {
|
||||
this.setDefaultView();
|
||||
return true;
|
||||
}
|
||||
return (
|
||||
this.value.items[this.activeWoItemIndex].scheduledUsers[
|
||||
this.activeItemIndex
|
||||
|
||||
@@ -149,7 +149,19 @@ export default {
|
||||
default: null,
|
||||
type: Object
|
||||
}
|
||||
// , resetSelections: {
|
||||
// default: false,
|
||||
// type: Boolean
|
||||
// }
|
||||
},
|
||||
// watch: {
|
||||
// resetSelections: function(newValue, oldValue) {
|
||||
// if (newValue != oldValue) {
|
||||
// // this.activeItemIndex = null;
|
||||
// // this.selectedRow = [];
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
methods: {
|
||||
newItem() {
|
||||
let newIndex = this.value.items.length;
|
||||
@@ -244,6 +256,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
isDeleted: function() {
|
||||
console.trace("woitems isDeleted:", this.activeItemIndex);
|
||||
return this.value.items[this.activeItemIndex].deleted === true;
|
||||
},
|
||||
headerList: function() {
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
></v-progress-circular>
|
||||
</template>
|
||||
</div>
|
||||
<!-- :reset-selections="resetSelections" -->
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -166,6 +167,7 @@ export default {
|
||||
timeZoneName: window.$gz.locale.getResolvedTimeZoneName(),
|
||||
languageName: window.$gz.locale.getResolvedLanguage(),
|
||||
hour12: window.$gz.locale.getHour12(),
|
||||
// resetSelections: false,
|
||||
selectLists: {
|
||||
wostatus: [],
|
||||
allowedwostatus: []
|
||||
@@ -401,6 +403,9 @@ export default {
|
||||
//into a single error collection for display as normal
|
||||
//########################################################
|
||||
|
||||
// //first of all reset all selections (toggle) so that children aren't stuck with an active item that is going to be deleted
|
||||
// this.resetSelections = !this.resetSelections;
|
||||
|
||||
const isPost = vm.obj.id == 0;
|
||||
|
||||
let err = {
|
||||
@@ -788,8 +793,8 @@ async function deleteItems(vm, err) {
|
||||
} else {
|
||||
vm.obj.items.splice(i, 1);
|
||||
}
|
||||
return err;
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
||||
async function saveItems(vm, err) {
|
||||
|
||||
Reference in New Issue
Block a user