Skip to content

Commit 37685ea

Browse files
committed
Update action usage
1 parent 72e16ad commit 37685ea

11 files changed

+20
-21
lines changed

assets/javascripts/discourse/templates/admin-wizards-api.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
)}}
99

1010
{{d-button
11-
action="createApi"
11+
action=(action "createApi")
1212
label="admin.wizard.api.create"
1313
icon="plus"}}
1414
</div>

assets/javascripts/discourse/templates/admin-wizards-custom-fields.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{{d-button
66
label="admin.wizard.custom_field.add"
77
icon="plus"
8-
action="addField"}}
8+
action=(action "addField")}}
99
</div>
1010
</div>
1111

assets/javascripts/discourse/templates/admin-wizards-wizard-show.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
{{input type="checkbox" checked=wizard.after_time}}
102102
<span>{{i18n "admin.wizard.after_time_label"}}</span>
103103
{{d-button
104-
action="setNextSessionScheduled"
104+
action=(action "setNextSessionScheduled")
105105
translatedLabel=nextSessionScheduledLabel
106106
class="btn-after-time"
107107
icon="far-calendar"}}
@@ -191,7 +191,7 @@
191191
currentActionId=currentAction.id
192192
wizard=wizard
193193
apis=apis
194-
removeAction="removeAction"
194+
removeAction=(action "removeAction")
195195
wizardFields=wizardFields}}
196196
{{/each}}
197197

assets/javascripts/discourse/templates/admin-wizards-wizard.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
)}}
99

1010
{{d-button
11-
action="createWizard"
11+
action=(action "createWizard")
1212
label="admin.wizard.create"
1313
icon="plus"}}
1414
</div>

assets/javascripts/discourse/templates/components/custom-field-input.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@
3434
{{/if}}
3535
{{/if}}
3636
{{d-button
37-
action="destroy"
37+
action=(action "destroy")
3838
icon="trash-alt"
3939
class="destroy"
4040
disabled=destroyDisabled}}
4141
{{d-button
4242
icon="save"
43-
action="save"
43+
action=(action "save")
4444
disabled=saveDisabled
4545
class="save"}}
4646
{{d-button
47-
action="close"
47+
action=(action "close")
4848
icon="times"
4949
disabled=closeDisabled}}
5050
</td>
@@ -69,7 +69,7 @@
6969
</td>
7070
{{else}}
7171
<td class="actions">
72-
{{d-button action="edit" icon="pencil-alt"}}
72+
{{d-button action=(action "edit") icon="pencil-alt"}}
7373
</td>
7474
{{/if}}
7575
{{/if}}

assets/javascripts/discourse/templates/components/wizard-custom-action.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#if showUndo}}
22
{{d-button
3-
action="undoChanges"
3+
action=(action "undoChanges")
44
icon=undoIcon
55
label=undoKey
66
class="undo-changes"}}

assets/javascripts/discourse/templates/components/wizard-custom-field.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#if showUndo}}
22
{{d-button
3-
action="undoChanges"
3+
action=(action "undoChanges")
44
icon=undoIcon
55
label=undoKey
66
class="undo-changes"}}

assets/javascripts/discourse/templates/components/wizard-links.hbs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@
44
{{#if anyLinks}}
55
{{#each links as |link|}}
66
<div data-id={{link.id}}>
7-
{{d-button action="change" actionParam=link.id translatedLabel=link.label class=link.classes}}
7+
{{d-button action=(action "change") actionParam=link.id translatedLabel=link.label class=link.classes}}
88
{{#unless link.first}}
9-
{{d-button action="back" actionParam=link icon="arrow-left" class="back"}}
9+
{{d-button action=(action "back") actionParam=link icon="arrow-left" class="back"}}
1010
{{/unless}}
1111
{{#unless link.last}}
12-
{{d-button action="forward" actionParam=link icon="arrow-right" class="forward"}}
12+
{{d-button action=(action "forward") actionParam=link icon="arrow-right" class="forward"}}
1313
{{/unless}}
14-
{{d-button action="remove" actionParam=link.id icon="times" class="remove"}}
14+
{{d-button action=(action "remove") actionParam=link.id icon="times" class="remove"}}
1515
</div>
1616
{{/each}}
1717
{{/if}}
18-
{{d-button action="add" label="admin.wizard.add" icon="plus"}}
18+
{{d-button action=(action "add") label="admin.wizard.add" icon="plus"}}
1919
</div>
20-

assets/javascripts/discourse/templates/components/wizard-mapper.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515

1616
{{#if canAdd}}
1717
<span class="add-mapper-input">
18-
{{d-button action="add" label="admin.wizard.add" icon="plus"}}
18+
{{d-button action=(action "add") label="admin.wizard.add" icon="plus"}}
1919
</span>
2020
{{/if}}

assets/javascripts/discourse/templates/components/wizard-text-editor.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
<div class="wizard-editor-gutter">
77
{{#if previewEnabled}}
88
{{d-button
9-
action="togglePreview"
9+
action=(action "togglePreview")
1010
translatedLabel=previewLabel}}
1111
{{/if}}
1212

1313
{{#if fieldsEnabled}}
1414
{{d-button
15-
action="togglePopover"
15+
action=(action "togglePopover")
1616
translatedLabel=popoverLabel}}
1717

1818
{{#if showPopover}}

0 commit comments

Comments
 (0)