Commit 2332ff54 authored by Reza Sahebgharan's avatar Reza Sahebgharan

feat(disable btn): disable btn if table record is not selected

Closes KRN-46
parent 23126899
...@@ -52,10 +52,10 @@ ...@@ -52,10 +52,10 @@
<v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="openNewDialog"> <v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="openNewDialog">
<strong>{{$t("HISLink.newBtn")}}</strong> <strong>{{$t("HISLink.newBtn")}}</strong>
</v-btn> </v-btn>
<v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="openEditDialog"> <v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="openEditDialog" :disabled="this.selectedItemInTable.length == 0">
<strong>{{$t("HISLink.editBtn")}}</strong> <strong>{{$t("HISLink.editBtn")}}</strong>
</v-btn> </v-btn>
<v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="deleteSnackbar"> <v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="deleteSnackbar" :disabled="this.selectedItemInTable.length == 0">
<strong>{{$t("HISLink.deleteBtn")}}</strong> <strong>{{$t("HISLink.deleteBtn")}}</strong>
</v-btn> </v-btn>
</v-col> </v-col>
......
...@@ -72,10 +72,10 @@ ...@@ -72,10 +72,10 @@
<v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="openNewDialog"> <v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="openNewDialog">
<strong>{{$t("HISLink.newBtn")}}</strong> <strong>{{$t("HISLink.newBtn")}}</strong>
</v-btn> </v-btn>
<v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="openEditDialog"> <v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="openEditDialog" :disabled="this.selectedItemInTable.length == 0">
<strong>{{$t("HISLink.editBtn")}}</strong> <strong>{{$t("HISLink.editBtn")}}</strong>
</v-btn> </v-btn>
<v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="deleteSnackbar"> <v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="deleteSnackbar" :disabled="this.selectedItemInTable.length == 0">
<strong>{{$t("HISLink.deleteBtn")}}</strong> <strong>{{$t("HISLink.deleteBtn")}}</strong>
</v-btn> </v-btn>
</v-col> </v-col>
......
...@@ -100,26 +100,32 @@ ...@@ -100,26 +100,32 @@
<v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="openNewDialog"> <v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="openNewDialog">
<strong>{{$t("HISLink.newBtn")}}</strong> <strong>{{$t("HISLink.newBtn")}}</strong>
</v-btn> </v-btn>
<v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="openEditDialog"> <v-btn
color="rgb(94, 181, 177,.85)"
class="white--text"
@click="openEditDialog"
:disabled="this.selectedItemInTable.length == 0"
>
<strong>{{$t("HISLink.editBtn")}}</strong> <strong>{{$t("HISLink.editBtn")}}</strong>
</v-btn> </v-btn>
<v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="deleteSnackbar"> <v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="deleteSnackbar" :disabled="this.selectedItemInTable.length == 0">
<strong>{{$t("HISLink.deleteBtn")}}</strong> <strong>{{$t("HISLink.deleteBtn")}}</strong>
</v-btn> </v-btn>
<v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="activeHislink"> <v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="activeHislink" :disabled="this.selectedItemInTable.length == 0">
<strong>{{$t("HISLink.activeBtn")}}</strong> <strong>{{$t("HISLink.activeBtn")}}</strong>
</v-btn> </v-btn>
<v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="deactiveHislink"> <v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="deactiveHislink" :disabled="this.selectedItemInTable.length == 0">
<strong>{{$t("HISLink.deactiveBtn")}}</strong> <strong>{{$t("HISLink.deactiveBtn")}}</strong>
</v-btn> </v-btn>
<v-btn <v-btn
color="rgb(94, 181, 177,.85)" color="rgb(94, 181, 177,.85)"
class="white--text" class="white--text"
@click="authenticateHislink" @click="authenticateHislink"
:disabled="this.selectedItemInTable.length == 0"
> >
<strong>{{$t("HISLink.authenticateBtn")}}</strong> <strong>{{$t("HISLink.authenticateBtn")}}</strong>
</v-btn> </v-btn>
<v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="getWorklist"> <v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="getWorklist" :disabled="this.selectedItemInTable.length == 0">
<strong>{{$t("HISLink.getWorklistBtn")}}</strong> <strong>{{$t("HISLink.getWorklistBtn")}}</strong>
</v-btn> </v-btn>
</v-col> </v-col>
......
...@@ -94,13 +94,13 @@ ...@@ -94,13 +94,13 @@
<v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="openNewDialog"> <v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="openNewDialog">
<strong>{{$t("HISLink.newBtn")}}</strong> <strong>{{$t("HISLink.newBtn")}}</strong>
</v-btn> </v-btn>
<v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="openEditDialog"> <v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="openEditDialog" :disabled="this.selectedItemInTable.length == 0">
<strong>{{$t("HISLink.editBtn")}}</strong> <strong>{{$t("HISLink.editBtn")}}</strong>
</v-btn> </v-btn>
<v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="openResetDialog"> <v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="openResetDialog" :disabled="this.selectedItemInTable.length == 0">
<strong>{{$t("Users.ResetPasswordBtn")}}</strong> <strong>{{$t("Users.ResetPasswordBtn")}}</strong>
</v-btn> </v-btn>
<v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="deleteSnackbar"> <v-btn color="rgb(94, 181, 177,.85)" class="white--text" @click="deleteSnackbar" :disabled="this.selectedItemInTable.length == 0">
<strong>{{$t("HISLink.deleteBtn")}}</strong> <strong>{{$t("HISLink.deleteBtn")}}</strong>
</v-btn> </v-btn>
</v-col> </v-col>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment