mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
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:
committed by
GitHub
parent
927d858a4d
commit
12a3ce6390
3
changelog/23066.txt
Normal file
3
changelog/23066.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
ui: Fix the issue where confirm delete dropdown is being cut off
|
||||
```
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user