mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-11 01:42:06 -04:00
Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>
This commit is contained in:
parent
0154b89fd3
commit
bcd98f23e3
2 changed files with 5 additions and 1 deletions
|
|
@ -48,7 +48,9 @@
|
|||
@route="vault.cluster.recovery.snapshots.snapshot.manage"
|
||||
@models={{array @model.snapshot.snapshot_id}}
|
||||
>Manage secrets</dd.Interactive>
|
||||
<dd.Interactive @color="critical" @icon="trash" {{on "click" this.unloadSnapshot}}>Unload snapshot</dd.Interactive>
|
||||
{{#if this.namespace.inRootNamespace}}
|
||||
<dd.Interactive @color="critical" @icon="trash" {{on "click" this.unloadSnapshot}}>Unload snapshot</dd.Interactive>
|
||||
{{/if}}
|
||||
</Hds::Dropdown>
|
||||
</B.Td>
|
||||
</B.Tr>
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ import { dateFormat } from 'core/helpers/date-format';
|
|||
import { tracked } from '@glimmer/tracking';
|
||||
|
||||
import type ApiService from 'vault/services/api';
|
||||
import type NamespaceService from 'vault/services/namespace';
|
||||
import type RouterService from '@ember/routing/router-service';
|
||||
import type { SnapshotManageModel } from 'vault/routes/vault/cluster/recovery/snapshots/snapshot/manage';
|
||||
import type FlashMessageService from 'vault/services/flash-messages';
|
||||
|
|
@ -25,6 +26,7 @@ interface Args {
|
|||
export default class SnapshotDetails extends Component<Args> {
|
||||
@service declare readonly api: ApiService;
|
||||
@service declare readonly flashMessages: FlashMessageService;
|
||||
@service declare readonly namespace: NamespaceService;
|
||||
@service declare readonly router: RouterService;
|
||||
|
||||
@tracked snapshotStatus?: string = '';
|
||||
|
|
|
|||
Loading…
Reference in a new issue