-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI: HDS adoption replace <ConfirmAction> component #21520
Changes from 13 commits
3ba8b36
9c69e5d
4d26f12
8ef70fe
e956d34
c61423d
bb75f54
4395212
b879604
3e3ea30
ffd2c5a
1c81900
2c73e4a
8b59da6
72be6c9
9fc8854
a0be23b
93419be
4225667
3c75577
de38317
65917e4
89ab510
3210bf4
6b9ed16
5b6c0e7
16fbe1a
69f2952
44904ce
ff4fcc9
0f1c938
365992a
7059e1a
e975a28
8afc847
4a33842
b60b6c0
e3b5222
56f212f
eda92ea
d085494
8b2d558
009ddfb
8642aad
d490985
de200d3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,14 +21,11 @@ | |
|
||
<div class="field is-grouped box is-fullwidth is-bottomless"> | ||
<ConfirmAction | ||
@buttonClasses="button is-primary" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
@buttonText="Seal" | ||
@confirmTitle="Seal this cluster?" | ||
@confirmMessage="You will not be able to read or write any data until the cluster is unsealed again." | ||
@confirmButtonText="Seal" | ||
@horizontalPosition="auto-left" | ||
@onConfirmAction={{this.handleSeal}} | ||
data-test-seal | ||
> | ||
Seal | ||
</ConfirmAction> | ||
/> | ||
</div> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,18 @@ | |
width: 100%; | ||
} | ||
|
||
// TODO HDS polish - temp styling fix for ConfirmAction dropdown buttons | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
// so they match other dropdown elements until we replace popup-menu with Hds::Dropdown | ||
.hds-confirm-action-critical { | ||
&:hover { | ||
background-color: $ui-gray-050; | ||
} | ||
div { | ||
font-size: $size-7; | ||
font-weight: $font-weight-semibold; | ||
} | ||
} | ||
|
||
button.link, | ||
.ember-power-select-option, | ||
.ember-power-select-option[aria-current='true'], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,13 +8,12 @@ | |
<ul class="menu-list"> | ||
<li class="action"> | ||
<ConfirmAction | ||
@buttonText="Remove" | ||
@buttonClasses="link is-destroy" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
@confirmButtonText="Remove this group?" | ||
@confirmMessage="This may affect permissions for this group." | ||
@onConfirmAction={{action "performTransaction" this.model this.groupArray this.memberId}} | ||
> | ||
Remove | ||
</ConfirmAction> | ||
/> | ||
</li> | ||
</ul> | ||
</nav> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,14 +8,13 @@ | |
<ul class="menu-list"> | ||
<li class="action"> | ||
<ConfirmAction | ||
@buttonText="Remove" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
@buttonClasses="link is-destroy" | ||
@confirmTitle="Remove metadata?" | ||
@confirmMessage="This data may be used outside of Vault." | ||
@confirmButtonText="Remove" | ||
@onConfirmAction={{action "performTransaction" this.model this.key}} | ||
> | ||
Remove | ||
</ConfirmAction> | ||
/> | ||
</li> | ||
</ul> | ||
</nav> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,14 +18,12 @@ | |
</li> | ||
<li class="action"> | ||
<ConfirmAction | ||
@buttonText="Remove from {{this.model.identityType}}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
@buttonClasses="link is-destroy" | ||
@confirmButtonText="Remove" | ||
@confirmMessage="This policy may affect permissions to access Vault data." | ||
@onConfirmAction={{action "performTransaction" this.model this.policyName}} | ||
> | ||
Remove from | ||
{{this.model.identityType}} | ||
</ConfirmAction> | ||
/> | ||
</li> | ||
</ul> | ||
</nav> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,31 +75,30 @@ | |
{{/if}} | ||
{{#if @model.provider}} | ||
<ConfirmAction | ||
@buttonText="Remove key" | ||
@buttonClasses="toolbar-link" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
@onConfirmAction={{perform this.removeKey}} | ||
@confirmTitle="Remove this key?" | ||
@confirmMessage="This will remove all versions of the key from the KMS provider. The key will stay in Vault." | ||
@confirmButtonText="Remove" | ||
@isRunning={{this.removeKey.isRunning}} | ||
data-test-keymgmt-key-remove | ||
> | ||
Remove key | ||
</ConfirmAction> | ||
/> | ||
{{/if}} | ||
{{#if (or @model.canDelete @model.provider)}} | ||
<div class="toolbar-separator"></div> | ||
{{/if}} | ||
<ConfirmAction | ||
@buttonText="Rotate key" | ||
@buttonClasses="toolbar-link" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
@onConfirmAction={{perform this.rotateKey}} | ||
@confirmTitle="Rotate this key?" | ||
@confirmMessage="After rotation, all key actions will default to using the newest version of the key." | ||
@confirmButtonText="Rotate" | ||
@color="warning" | ||
@isRunning={{this.rotateKey.isRunning}} | ||
data-test-keymgmt-key-rotate | ||
> | ||
Rotate key | ||
</ConfirmAction> | ||
/> | ||
{{#if @model.canEdit}} | ||
<ToolbarSecretLink | ||
@secret={{@model.id}} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.