yield entire conrirmation instance rather than just text
This commit is contained in:
2 files changed
+5
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{{#each this.confirm.pending as |confirmation|}}
|
||||
{{yield
|
||||
confirmation.text
|
||||
confirmation
|
||||
(fn this.accept confirmation)
|
||||
(fn this.deny confirmation)}}
|
||||
{{/each}}
|
||||
@@ -84,15 +84,17 @@
|
||||
</Rose::Notification>
|
||||
</EmberNotify>
|
||||
|
||||
<PendingConfirmations as |text accept deny|>
|
||||
<PendingConfirmations as |confirmation accept deny|>
|
||||
<Rose::Dialog
|
||||
@heading={{t "actions.confirm"}}
|
||||
@dismissButtonText={{t "actions.cancel"}}
|
||||
@icon="alert-triangle"
|
||||
@style="warning"
|
||||
@modal={{true}}
|
||||
@dismiss={{deny}}
|
||||
as |dialog|>
|
||||
<dialog.body>
|
||||
<p>{{text}}</p>
|
||||
<p>{{confirmation.text}}</p>
|
||||
</dialog.body>
|
||||
<dialog.footer>
|
||||
<Rose::Button @style="primary" {{on "click" accept}}>
|
||||
|
||||
Reference in new issue
Block a user