Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
reg-app
Regapp
Commits
fdb902eb
Commit
fdb902eb
authored
Jul 23, 2020
by
ls1947
Browse files
Only tokens with delable status should show delete button
parent
5aa5bbec
Changes
3
Hide whitespace changes
Inline
Side-by-side
bwreg-webapp/src/main/resources/msg/messages_de.properties
View file @
fdb902eb
my_twofa
=
Meine Tokens
twofa_token_not_init
=
Token ist nicht initialisiert worden
ssh_key_deployed
=
Der SSH Pub Key wurde angelegt
enable
=
Aktivieren
disable
=
Deaktivieren
...
...
bwreg-webapp/src/main/resources/msg/messages_en.properties
View file @
fdb902eb
my_twofa
=
My tokens
twofa_token_not_init
=
Token has not been initialised
ssh_key_deployed
=
SSH pub key has been deployed.
enable
=
Enable
disable
=
Disable
...
...
bwreg-webapp/src/main/webapp/user/twofa.xhtml
View file @
fdb902eb
...
...
@@ -104,7 +104,7 @@
<p:commandButton
action=
"#{twoFaUserBean.enableToken(token.serial)}"
value=
"#{messages.enable}"
update=
"@form"
rendered=
"#{! token.isactive and (! token.tokenDesc.contains('INIT'))}"
/>
<p:commandButton
action=
"#{twoFaUserBean.deleteToken(token.serial)}"
value=
"#{messages.delete}"
update=
"@form"
rendered=
"#{! token.isactive}"
style=
"color:red;"
>
update=
"@form"
rendered=
"#{! token.isactive
and (token.tokenDesc.contains('DELABLE'))
}"
style=
"color:red;"
>
<p:confirm
header=
"#{messages.confirm_header}"
message=
"#{messages.confirm}"
/>
</p:commandButton>
</p:outputPanel>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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