Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
karname-ui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Reza Sahebgharan
karname-ui
Commits
2332ff54
Commit
2332ff54
authored
Feb 05, 2020
by
Reza Sahebgharan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(disable btn): disable btn if table record is not selected
Closes
KRN-46
parent
23126899
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
12 deletions
+18
-12
Client.vue
client/components/Client.vue
+2
-2
DeviceMap.vue
client/components/DeviceMap.vue
+2
-2
HisLink.vue
client/components/HisLink.vue
+11
-5
Users.vue
client/components/Users.vue
+3
-3
No files found.
client/components/Client.vue
View file @
2332ff54
...
...
@@ -52,10 +52,10 @@
<v-btn
color=
"rgb(94, 181, 177,.85)"
class=
"white--text"
@
click=
"openNewDialog"
>
<strong>
{{
$t
(
"HISLink.newBtn"
)
}}
</strong>
</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>
</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>
</v-btn>
</v-col>
...
...
client/components/DeviceMap.vue
View file @
2332ff54
...
...
@@ -72,10 +72,10 @@
<v-btn
color=
"rgb(94, 181, 177,.85)"
class=
"white--text"
@
click=
"openNewDialog"
>
<strong>
{{
$t
(
"HISLink.newBtn"
)
}}
</strong>
</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>
</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>
</v-btn>
</v-col>
...
...
client/components/HisLink.vue
View file @
2332ff54
...
...
@@ -100,26 +100,32 @@
<v-btn
color=
"rgb(94, 181, 177,.85)"
class=
"white--text"
@
click=
"openNewDialog"
>
<strong>
{{
$t
(
"HISLink.newBtn"
)
}}
</strong>
</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>
</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>
</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>
</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>
</v-btn>
<v-btn
color=
"rgb(94, 181, 177,.85)"
class=
"white--text"
@
click=
"authenticateHislink"
:disabled=
"this.selectedItemInTable.length == 0"
>
<strong>
{{
$t
(
"HISLink.authenticateBtn"
)
}}
</strong>
</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>
</v-btn>
</v-col>
...
...
client/components/Users.vue
View file @
2332ff54
...
...
@@ -94,13 +94,13 @@
<v-btn
color=
"rgb(94, 181, 177,.85)"
class=
"white--text"
@
click=
"openNewDialog"
>
<strong>
{{$t("HISLink.newBtn")}}
</strong>
</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>
</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>
</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>
</v-btn>
</v-col>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment