mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 13:26:07 +00:00
49c80aab32
* ui: Add a warning dialog if you go to remove permissions from an intention * ui: Move modal styles next to component, add warning style * ui: Move back to using the input name for a selector * ui: Fixup negative "isn't" step so its optional * Add warning modal to pageobject * Fixup test for whether to show the warning modal or not * Intention change action warning acceptence test * Add a null/undefined Action
52 lines
1.3 KiB
Handlebars
52 lines
1.3 KiB
Handlebars
{{on-window 'resize' (action "resize") }}
|
|
<Portal @target="modal">
|
|
{{yield}}
|
|
<div
|
|
class="modal-dialog"
|
|
{{ref this 'modal'}}
|
|
...attributes
|
|
>
|
|
<input
|
|
class="modal-dialog-control"
|
|
id={{name}}
|
|
type="radio"
|
|
name="modal"
|
|
data-checked="{{checked}}"
|
|
checked={{checked}}
|
|
onchange={{action 'change'}}
|
|
/>
|
|
<div
|
|
class="modal-dialog-modal"
|
|
role="dialog"
|
|
aria-modal="true"
|
|
>
|
|
<label for="modal_close"></label>
|
|
<div>
|
|
<div class="modal-dialog-window">
|
|
<header class="modal-dialog-header">
|
|
<label for="modal_close"></label>
|
|
<YieldSlot @name="header">
|
|
{{yield (hash
|
|
close=(action "close")
|
|
)}}
|
|
</YieldSlot>
|
|
</header>
|
|
<div class="modal-dialog-body">
|
|
<YieldSlot @name="body">
|
|
{{yield (hash
|
|
close=(action "close")
|
|
)}}
|
|
</YieldSlot>
|
|
</div>
|
|
<footer class="modal-dialog-footer">
|
|
<YieldSlot @name="actions" @params={{block-params (action "close")}}>
|
|
{{yield (hash
|
|
close=(action "close")
|
|
)}}
|
|
</YieldSlot>
|
|
</footer>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</Portal> |