i have on 2 value v-select
<v-select
v-model="selectedRangeSG"
outlined
dense
class="select-no-color"
:items="['All Treshold', 'Manual Input']"
:key="selectedRangeSG"
@change="showDialogSG"
/>
and i created modal when item selected by default
private selectedRangeSG = 'All Treshold'
i try to set dialog false when klik cancel
this is my code
private showDialogSG () {
if (this.selectedRangeSG === 'Manual Input') {
this.dialogSG = true
} else if (this.selectedRangeSG === 'All Treshold') {
this.dialogSG = false
} else {
console.log('Err')
}
}
how to set show dialog when i selected Manual Input, then the dialog can pop up again