fix voting only one calon sahaja
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
<div class="col-md-8">
|
||||
<h4>Senarai Calon</h4>
|
||||
<div class="alert alert-warning " role="alert">
|
||||
Anda Hanya Boleh Memilih <b> dua (2) Orang Calon</b> Sahaja.
|
||||
Anda hanya boleh memilih <b> satu (1) orang calon</b> sahaja.
|
||||
</div>
|
||||
<hr />
|
||||
<div class="panel panel-info" v-for="position in data.positions">
|
||||
@@ -100,7 +100,7 @@ export default {
|
||||
name: {},
|
||||
selectedNominees: {
|
||||
},
|
||||
max: 2
|
||||
max: 1
|
||||
}
|
||||
},
|
||||
|
||||
@@ -233,8 +233,8 @@ export default {
|
||||
},
|
||||
|
||||
checkUndi: function(){
|
||||
if(this.selected[0]['nominee_id'].length <= 1){
|
||||
this.util.notify('Sila pastikan anda memilih (2) orang calon.', 'error');
|
||||
if(this.selected[0]['nominee_id'].length <= 0){
|
||||
this.util.notify('Sila pastikan anda memilih (1) orang calon.', 'error');
|
||||
}else{
|
||||
this.util.showModal('#vote-modal');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user