2018-10-10 04:44:08 +00:00
|
|
|
{{#if (and isV2 modelForData.destroyed)}}
|
2018-11-03 16:26:48 +00:00
|
|
|
<EmptyState
|
|
|
|
@title="Version {{modelForData.version}} of this secret has been permanently destroyed."
|
|
|
|
/>
|
2018-10-10 04:44:08 +00:00
|
|
|
{{else if (and isV2 modelForData.deleted)}}
|
2018-11-03 16:26:48 +00:00
|
|
|
<EmptyState
|
|
|
|
@title="Version {{modelForData.version}} of this secret has been deleted."
|
|
|
|
/>
|
2018-04-03 14:16:57 +00:00
|
|
|
{{else}}
|
2018-10-10 04:44:08 +00:00
|
|
|
{{#if showAdvancedMode}}
|
|
|
|
{{json-editor
|
|
|
|
value=modelForData.dataAsJSONString
|
|
|
|
options=(hash
|
|
|
|
readOnly=true
|
|
|
|
)
|
|
|
|
}}
|
|
|
|
{{else}}
|
|
|
|
<div class="table info-table-row-header">
|
|
|
|
<div class="info-table-row thead">
|
|
|
|
<div class="th column is-one-quarter">
|
|
|
|
Key
|
|
|
|
</div>
|
|
|
|
<div class="th column">
|
|
|
|
Value
|
|
|
|
</div>
|
2018-04-03 14:16:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-10-10 04:44:08 +00:00
|
|
|
{{#each-in modelForData.secretData as |key value|}}
|
|
|
|
{{#info-table-row label=key value=value alwaysRender=true}}
|
2018-10-31 17:13:57 +00:00
|
|
|
{{masked-input value=value displayOnly=true allowCopy=true}}
|
2018-10-10 04:44:08 +00:00
|
|
|
{{/info-table-row}}
|
|
|
|
{{/each-in}}
|
|
|
|
{{/if}}
|
2018-04-03 14:16:57 +00:00
|
|
|
{{/if}}
|