DONE: enhance UI on admin and voter side, add docker config, fix delete button modal not showing
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
class="btn btn-primary">
|
||||
<i class="fa fa-edit"></i>Kemaskini
|
||||
</router-link>
|
||||
<button class="btn btn-danger" @click="util.showModal(nominee.id)" id=nominee.id>
|
||||
<button class="btn btn-danger" @click="openDeleteModal(nominee)">
|
||||
<i class="fa fa-trash"></i>Padam
|
||||
</button>
|
||||
|
||||
@@ -107,7 +107,13 @@ export default {
|
||||
|
||||
methods: {
|
||||
|
||||
deleteNominee(nomineeId) {
|
||||
openDeleteModal: function (nominee) {
|
||||
this.id = nominee.id;
|
||||
this.util.showModal('#delete-nominee-modal');
|
||||
},
|
||||
|
||||
deleteNominee() {
|
||||
const nomineeId = this.id;
|
||||
this.util.hideModal('#delete-nominee-modal'); // Hide modal
|
||||
this.util.notify('Deleting nominee', 'loading'); // Show loading notification
|
||||
|
||||
|
||||
Reference in New Issue
Block a user