Backport of UI: [VAULT-19982] confirm delete modal for namespaces into release/1.15.x (#23101)

Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com>
This commit is contained in:
hc-github-team-secure-vault-core
2023-09-14 20:26:13 -04:00
committed by GitHub
parent 927d858a4d
commit 12a3ce6390
3 changed files with 5 additions and 7 deletions

3
changelog/23066.txt Normal file
View File

@@ -0,0 +1,3 @@
```release-note:bug
ui: Fix the issue where confirm delete dropdown is being cut off
```

View File

@@ -32,9 +32,6 @@ export default Component.extend({
openTrigger: null,
height: 0,
focusTrigger: null,
style: computed('height', function () {
return `height: ${this.height}px`;
}),
wormholeReference: null,
wormholeId: computed('elementId', function () {
return `confirm-${this.elementId}`;
@@ -51,7 +48,7 @@ export default Component.extend({
const height = this.openTrigger
? this.element.querySelector('.confirm-overlay').clientHeight
: this.element.querySelector('.confirm').clientHeight;
this.set('height', height);
this.element.querySelector('.confirm-wrapper').style = `height: ${height}px;`;
},
actions: {
onTrigger: function (itemId, e) {

View File

@@ -3,9 +3,7 @@
SPDX-License-Identifier: BUSL-1.1
~}}
{{! template-lint-disable no-inline-styles}}
<div class="confirm-wrapper" style={{sanitized-html this.style}}>
<div class="confirm-wrapper">
<div class="confirm {{if this.openTrigger 'show-confirm'}}" ...attributes>
{{yield
(hash