Commit fdb902eb authored by ls1947's avatar ls1947
Browse files

Only tokens with delable status should show delete button

parent 5aa5bbec
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
......
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
......
......@@ -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>
......
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