Skip to content

Commit

Permalink
462 fix merge conflicts on Tom
Browse files Browse the repository at this point in the history
  • Loading branch information
lloback committed Jun 3, 2020
1 parent cc84457 commit f14b491
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions src/views/Exercises/Stages/SelectedEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ export default {
availableStatuses() {
return this.$store.getters['stageSelected/availableStatuses'];
},
<<<<<<< HEAD
itemsToChange() {
const selectedItems = this.$store.state.stageSelected.selectedItems;
return selectedItems;
Expand All @@ -85,25 +84,11 @@ export default {
if (this.itemsToChange.length === 0) {
this.$router.push({ name: 'exercise-stages-selected-list' });
}
},
methods: {
async save() {
await this.$store.dispatch('stageSelected/updateStatus', { status: this.newSelectedStatus });
this.$router.push({ name: 'exercise-stages-selected-list' });
=======
warningMessage() {
return 'This application has issues';
},
},
methods: {
async save() {
if (!this.confirmedSave && this.hasIssues(this.applicationId)){
this.showWarning = true;
} else {
await this.$store.dispatch('stageSelected/updateStatus', { applicationId: this.applicationId, status: this.newSelectedStatus });
this.$router.push({ name: 'exercise-stages-selected-list' });
}
},
hasIssues(applicationId) {
const individualApplication = this.applicationRecords.filter(item => item.application.id === applicationId)[0];
return (individualApplication.flags.eligibilityIssues || individualApplication.flags.characterIssues);
Expand All @@ -113,7 +98,13 @@ export default {
},
cancel(){
this.showWarning = false;
>>>>>>> cd7deeb... Make Banner show for apps w/issues in selectedEdit
},
async save() {
if (!this.confirmedSave && this.hasIssues(this.applicationId)){
this.showWarning = true;
} else {
await this.$store.dispatch('stageSelected/updateStatus', { status: this.newSelectedStatus });
this.$router.push({ name: 'exercise-stages-selected-list' });
},
},
};
Expand Down

0 comments on commit f14b491

Please sign in to comment.