2021-05-24 16:45:35 +00:00
|
|
|
<PageHeader as |p|>
|
|
|
|
<p.levelLeft>
|
|
|
|
<h1 class="title is-3">
|
|
|
|
Lookup token
|
|
|
|
</h1>
|
|
|
|
</p.levelLeft>
|
|
|
|
</PageHeader>
|
|
|
|
|
|
|
|
{{#if (or @creation_time @creation_ttl)}}
|
|
|
|
<div class="box is-fullwidth is-sideless is-paddingless is-marginless">
|
2022-01-07 15:16:40 +00:00
|
|
|
<InfoTableRow @label="Creation path" @value={{@creation_path}} data-test-tools="token-lookup-row" />
|
|
|
|
<InfoTableRow @label="Creation time" @value={{@creation_time}} data-test-tools="token-lookup-row" />
|
|
|
|
<InfoTableRow @label="Creation TTL" @value={{@creation_ttl}} data-test-tools="token-lookup-row" />
|
2021-05-24 16:45:35 +00:00
|
|
|
{{#if @expirationDate}}
|
2022-01-07 15:16:40 +00:00
|
|
|
<InfoTableRow @label="Expiration date" @value={{@expirationDate}} data-test-tools="token-lookup-row" />
|
|
|
|
<InfoTableRow @label="Expires in" @value={{date-from-now @expirationDate}} data-test-tools="token-lookup-row" />
|
2021-05-24 16:45:35 +00:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class="field is-grouped box is-fullwidth is-bottomless">
|
|
|
|
<div class="control">
|
|
|
|
<button {{on "click" this.onClear}} type="button" class="button">
|
|
|
|
Back
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="box is-sideless is-fullwidth is-marginless">
|
|
|
|
<NamespaceReminder @mode="perform" @noun={{@selectedAction}} />
|
|
|
|
<MessageError @errors={{@errors}} />
|
|
|
|
<div class="field">
|
|
|
|
<label for="token" class="is-label">Wrapping token</label>
|
|
|
|
<div class="control">
|
2021-12-17 03:44:29 +00:00
|
|
|
<Input @value={{@token}} class="input" id="token" name="token" data-test-tools-input="wrapping-token" />
|
2021-05-24 16:45:35 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field is-grouped box is-fullwidth is-bottomless">
|
|
|
|
<div class="control">
|
|
|
|
<button type="submit" data-test-tools-submit="true" class="button is-primary">
|
|
|
|
Lookup token
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-12-17 03:44:29 +00:00
|
|
|
{{/if}}
|