Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
scc-net
netvs
netvs-core
Commits
4af56117
Commit
4af56117
authored
Oct 16, 2020
by
gj4210
👽
Browse files
ADD: "Remove all roles" button
parent
8545452c
Pipeline
#114399
passed with stages
in 8 minutes and 30 seconds
Changes
1
Pipelines
5
Hide whitespace changes
Inline
Side-by-side
frontend/src/views/netdb/Tokens.vue
View file @
4af56117
...
...
@@ -56,6 +56,9 @@
sticky-header
/>
</b-popover>
</
template
>
<b-button
v-if=
"new_account.roles.length > 0"
variant=
"outline-danger"
block
class=
"mt-1"
@
click=
"removeAllRoles"
>
Alle Rollen entfernen
</b-button>
</h5>
</template>
</b-form-group>
...
...
@@ -138,6 +141,9 @@
sticky-header
/>
</b-popover>
</
template
>
<b-button
v-if=
"new_account.roles.length > 0"
variant=
"outline-danger"
block
class=
"mt-1"
@
click=
"removeAllRoles"
>
Alle Rollen entfernen
</b-button>
</h5>
</b-form-group>
</template>
...
...
@@ -568,6 +574,8 @@ export default {
do_copy_roles
:
true
,
roles
:
[]
}
this
.
new_system
=
''
this
.
new_role_name
=
''
},
resetTokenData
()
{
this
.
new_token
=
{
...
...
@@ -747,6 +755,10 @@ export default {
}
this
.
updateCanAddRole
()
},
removeAllRoles
()
{
this
.
new_account
.
roles
=
[]
this
.
updateCanAddRole
()
},
updateCanAddRole
()
{
const
new_role
=
this
.
new_system
+
'
.
'
+
this
.
new_role_name
if
(
!
this
.
new_system
||
!
this
.
new_role_name
||
!
this
.
assignable_roles_by_fq_name
[
new_role
])
{
...
...
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