2018-06-12 21:06:37 +00:00
|
|
|
<PageHeader as |p|>
|
|
|
|
<p.levelLeft>
|
|
|
|
<h1 class="title is-3">
|
2019-03-29 23:40:12 +00:00
|
|
|
Unwrap data
|
2018-06-12 21:06:37 +00:00
|
|
|
</h1>
|
|
|
|
</p.levelLeft>
|
|
|
|
</PageHeader>
|
2018-04-03 14:16:57 +00:00
|
|
|
|
|
|
|
{{#if unwrap_data}}
|
|
|
|
<div class="box is-sideless is-fullwidth is-marginless">
|
2018-11-12 16:27:06 +00:00
|
|
|
<nav class="tabs">
|
|
|
|
<ul>
|
|
|
|
<li role="tab" aria-selected={{if (eq unwrapActiveTab "data") "true" "false"}} class="{{if (eq unwrapActiveTab "data") "is-active"}}">
|
2019-03-13 14:43:57 +00:00
|
|
|
<button class="link link-plain tab has-text-weight-semibold" {{action (mut unwrapActiveTab) "data"}} data-test-button-data>Data</button>
|
2018-11-12 16:27:06 +00:00
|
|
|
</li>
|
|
|
|
<li role="tab" aria-selected={{if (eq unwrapActiveTab "data") "true" "false"}} class="{{if (eq unwrapActiveTab "details") "is-active"}}">
|
2019-03-13 14:43:57 +00:00
|
|
|
<button class="link link-plain tab has-text-weight-semibold" {{action (mut unwrapActiveTab) "details"}} data-test-button-details>Wrap Details</button>
|
2018-11-12 16:27:06 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{{#if (eq unwrapActiveTab "data")}}
|
|
|
|
<div class="field">
|
|
|
|
<div class="control">
|
|
|
|
{{json-editor
|
|
|
|
value=(stringify unwrap_data)
|
|
|
|
options=(hash
|
|
|
|
readOnly=true
|
|
|
|
)
|
|
|
|
}}
|
|
|
|
</div>
|
2018-04-03 14:16:57 +00:00
|
|
|
</div>
|
2018-11-12 16:27:06 +00:00
|
|
|
{{else}}
|
|
|
|
<div class="field box is-fullwidth is-shadowless is-paddingless is-marginless">
|
|
|
|
{{#each-in details as |key detail|}}
|
|
|
|
{{#info-table-row label=key value=key}}
|
|
|
|
{{#if (or (eq detail "No") (eq detail "None"))}}
|
2019-05-13 19:05:25 +00:00
|
|
|
<Icon class="has-text-grey" @glyph="cancel-square-outline" /> {{detail}}
|
2018-11-12 16:27:06 +00:00
|
|
|
{{else}}
|
|
|
|
{{#if (eq detail "Yes") }}
|
2019-05-13 19:05:25 +00:00
|
|
|
<Icon class="has-text-success" @glyph="check-circle-outline" />
|
2018-11-12 16:27:06 +00:00
|
|
|
{{/if}}
|
|
|
|
{{detail}}
|
|
|
|
{{/if}}
|
|
|
|
{{/info-table-row}}
|
|
|
|
{{/each-in}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2018-04-03 14:16:57 +00:00
|
|
|
</div>
|
|
|
|
<div class="field is-grouped box is-fullwidth is-bottomless">
|
|
|
|
<div class="control">
|
|
|
|
{{#copy-button
|
|
|
|
clipboardText=(stringify unwrap_data)
|
|
|
|
class="button is-primary"
|
|
|
|
buttonType="button"
|
|
|
|
success=(action (set-flash-message 'Data copied!'))
|
|
|
|
}}
|
|
|
|
Copy
|
|
|
|
{{/copy-button}}
|
|
|
|
</div>
|
|
|
|
<div class="control">
|
|
|
|
<button {{action 'onClear'}} type="button" class="button">
|
|
|
|
Back
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="box is-sideless is-fullwidth is-marginless">
|
2018-08-16 17:48:24 +00:00
|
|
|
<NamespaceReminder @mode="perform" @noun={{selectedAction}} />
|
|
|
|
{{message-error errors=errors}}
|
2018-04-03 14:16:57 +00:00
|
|
|
<div class="field">
|
|
|
|
<label for="token" class="is-label">Wrapping token</label>
|
|
|
|
<div class="control">
|
|
|
|
{{input
|
|
|
|
value=token
|
|
|
|
class="input"
|
|
|
|
id="token"
|
|
|
|
name="token"
|
2019-03-13 14:43:57 +00:00
|
|
|
autocomplete="off"
|
2019-05-16 14:54:11 +00:00
|
|
|
spellcheck="false"
|
2018-04-03 14:16:57 +00:00
|
|
|
data-test-tools-input="wrapping-token"
|
|
|
|
}}
|
|
|
|
</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">
|
2019-03-29 23:40:12 +00:00
|
|
|
Unwrap data
|
2018-04-03 14:16:57 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|