Skip to content

Commit

Permalink
fix(tasks): fix switch from create to edit mode 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBrisorgueil committed Nov 22, 2019
1 parent 719d4db commit 6ac7000
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/modules/tasks/views/task.view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@
<v-icon class="mr-5">fa-check</v-icon>
<b>1. Description</b>
</v-subheader>
<<<<<<< Updated upstream
<div class="flex-grow-1"></div>
<v-btn v-if="id" color="red lighten-3" @click="remove" icon>
=======
<v-spacer></v-spacer>
<v-btn v-if="this.task.id" color="red lighten-3" @click="remove" icon>
>>>>>>> Stashed changes
<v-icon>fa-trash</v-icon>
</v-btn>
<v-btn v-if="id" class="mr-5" color="blue lighten-2" @click="update()" :disabled="!save" icon>
<v-btn v-if="this.task.id" class="mr-5" color="blue lighten-2" @click="update()" :disabled="!save" icon>
<v-icon>fa-save</v-icon>
</v-btn>
</v-row>
Expand All @@ -31,7 +36,7 @@
></v-text-field>
</v-col>
</v-row>
<v-row v-if="!id">
<v-row v-if="!this.task.id">
<v-btn
:disabled="!valid"
color="success"
Expand Down Expand Up @@ -108,6 +113,7 @@ export default {
.then(() => {
console.log(this.task);
this.$router.push(`/task/${this.task.id}`);
this.save = false;
})
.catch((err) => console.log(err));
}
Expand Down

0 comments on commit 6ac7000

Please sign in to comment.