From 38840174b2547ef314f7edc3433726b9c104435b Mon Sep 17 00:00:00 2001 From: nurafrinaalimi16 Date: Tue, 23 Apr 2024 22:08:43 +0800 Subject: [PATCH] fix vote page --- .../js/components/demo/voter/home/vote.vue | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/resources/assets/js/components/demo/voter/home/vote.vue b/resources/assets/js/components/demo/voter/home/vote.vue index df856b8..6e4fc1b 100644 --- a/resources/assets/js/components/demo/voter/home/vote.vue +++ b/resources/assets/js/components/demo/voter/home/vote.vue @@ -12,18 +12,11 @@ - {{ getSelectedNomineeName(nominee_id) }} -
  • - -
  • @@ -44,9 +37,6 @@ Bil. Nama - Bil. - - Nama Unit @@ -59,10 +49,6 @@ - {{ nominee.no_calon }} - - {{ nominee.name }} {{ nominee.unit }} @@ -77,7 +63,6 @@ @@ -152,7 +134,6 @@ export default { vm.data.result = response.data.result; vm.$router.push({ name: 'Voter Home' }); $('.modal').modal('hide'); - $('.modal').modal('hide'); } }) .catch(error => { @@ -200,11 +181,9 @@ export default { console.log(this.selected[0]) }, - getSelectedNomineeName: function (id) { getSelectedNomineeName: function (id) { return this.getNominee(id); }, - }, getName: function (id) { let positions = this.data.positions; @@ -221,7 +200,6 @@ export default { let nominees = this.data.nominees; for (var i in nominees) if (nominees[i]['id'] == id) return nominees[i].name; - if (nominees[i]['id'] == id) return nominees[i].name; return ''; }, @@ -247,15 +225,6 @@ export default { return "data:image/png;base64," + base64ImageData; } - view: function (index) { - this.x = this.data.nominees[index]; - this.util.showModal('#nominee-information-modal'); - }, - - createBase64ImageUrl: function (base64ImageData) { - return "data:image/png;base64," + base64ImageData; - } - // uncheck: function (checkedName) { // this.checkedName = this.checkedNames.filter(name => name !== checkedName); // }