mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 02:02:43 +00:00
UI: [VAULT-19982] confirm delete modal for namespaces (#23066)
This commit is contained in:
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,
|
openTrigger: null,
|
||||||
height: 0,
|
height: 0,
|
||||||
focusTrigger: null,
|
focusTrigger: null,
|
||||||
style: computed('height', function () {
|
|
||||||
return `height: ${this.height}px`;
|
|
||||||
}),
|
|
||||||
wormholeReference: null,
|
wormholeReference: null,
|
||||||
wormholeId: computed('elementId', function () {
|
wormholeId: computed('elementId', function () {
|
||||||
return `confirm-${this.elementId}`;
|
return `confirm-${this.elementId}`;
|
||||||
@@ -51,7 +48,7 @@ export default Component.extend({
|
|||||||
const height = this.openTrigger
|
const height = this.openTrigger
|
||||||
? this.element.querySelector('.confirm-overlay').clientHeight
|
? this.element.querySelector('.confirm-overlay').clientHeight
|
||||||
: this.element.querySelector('.confirm').clientHeight;
|
: this.element.querySelector('.confirm').clientHeight;
|
||||||
this.set('height', height);
|
this.element.querySelector('.confirm-wrapper').style = `height: ${height}px;`;
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
onTrigger: function (itemId, e) {
|
onTrigger: function (itemId, e) {
|
||||||
|
|||||||
@@ -3,9 +3,7 @@
|
|||||||
SPDX-License-Identifier: BUSL-1.1
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
~}}
|
~}}
|
||||||
|
|
||||||
{{! template-lint-disable no-inline-styles}}
|
<div class="confirm-wrapper">
|
||||||
|
|
||||||
<div class="confirm-wrapper" style={{sanitized-html this.style}}>
|
|
||||||
<div class="confirm {{if this.openTrigger 'show-confirm'}}" ...attributes>
|
<div class="confirm {{if this.openTrigger 'show-confirm'}}" ...attributes>
|
||||||
{{yield
|
{{yield
|
||||||
(hash
|
(hash
|
||||||
|
|||||||
Reference in New Issue
Block a user