Skip to content

Commit

Permalink
KNOX-3017 - Avoid showing lifetime adjustment popup when TTL is set t…
Browse files Browse the repository at this point in the history
…o -1
  • Loading branch information
smolnar82 committed Mar 11, 2024
1 parent c594fe7 commit da9a626
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h3>Token Generation</h3>
<label *ngIf="comment.invalid" style="color: red;"><i class="icon-warning"></i>Invalid comment!</label>

<label><i class="icon-info"></i> Configured maximum lifetime: </label>
<label>{{tssStatus.maximumLifetimeText}}</label>
<label>{{tssStatus.maximumLifetimeText}} <i class="icon-exclamation" *ngIf="'Unlimited lifetime' === tssStatus.maximumLifetimeText"></i></label>
<div *ngIf="tssStatus.lifespanInputEnabled">
<label><i class="icon-time"></i> Lifetime (days, hours, mins):</label>
<table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ export class TokenGenService {
return {
tokenManagementEnabled: responseData.tokenManagementEnabled === 'true',
maximumLifetimeText: responseData.maximumLifetimeText,
maximumLifetimeSeconds: responseData.maximumLifetimeSeconds,
// the '+' character at the beginning converts the incoming string to a number
maximumLifetimeSeconds: +responseData.maximumLifetimeSeconds,
lifespanInputEnabled: responseData.lifespanInputEnabled === 'true',
impersonationEnabled: responseData.impersonationEnabled === 'true',
configuredTssBackend: responseData.configuredTssBackend,
Expand Down

0 comments on commit da9a626

Please sign in to comment.