-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b30e76e
commit 8d75f26
Showing
13 changed files
with
117 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
assets/javascripts/discourse/components/modal/events-confirm-event-deletion.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<DModal | ||
class="delete-event-modal" | ||
@title={{i18n "admin.events.event.delete.title"}} | ||
@closeModal={{@closeModal}} | ||
@flash={{this.flash}} | ||
> | ||
<:body> | ||
<ul class="events"> | ||
{{#each model.events as |event|}} | ||
<li class="event">{{event.name}}</li> | ||
{{/each}} | ||
</ul> | ||
<div class="target-control"> | ||
<ComboBox | ||
@content={{deleteTargets}} | ||
@value={{deleteTarget}} | ||
@onChange={{action (mut deleteTarget)}} | ||
/> | ||
</div> | ||
</:body> | ||
<:footer> | ||
<DButton | ||
@class="btn-primary" | ||
@action={{action "delete"}} | ||
@label={{btnLabel}} | ||
disabled={{destroying}} | ||
/> | ||
<DButton | ||
@class="btn-danger" | ||
@label="cancel" | ||
@action={{action "cancel"}} | ||
disabled={{destroying}} | ||
/> | ||
{{conditional-loading-spinner condition=destroying size="small"}} | ||
</:footer> | ||
</DModal> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 0 additions & 33 deletions
33
assets/javascripts/discourse/templates/modal/events-confirm-event-deletion.hbs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.