0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 17:30:29 +01:00

Revert "Update action usage"

This reverts commit 37685ea8cf.
Dieser Commit ist enthalten in:
Angus McLeod 2022-04-04 12:14:00 +02:00
Ursprung 13f5aeda98
Commit 61ad74e07b
11 geänderte Dateien mit 21 neuen und 20 gelöschten Zeilen

Datei anzeigen

@ -8,7 +8,7 @@
)}} )}}
{{d-button {{d-button
action=(action "createApi") action="createApi"
label="admin.wizard.api.create" label="admin.wizard.api.create"
icon="plus"}} icon="plus"}}
</div> </div>

Datei anzeigen

@ -5,7 +5,7 @@
{{d-button {{d-button
label="admin.wizard.custom_field.add" label="admin.wizard.custom_field.add"
icon="plus" icon="plus"
action=(action "addField")}} action="addField"}}
</div> </div>
</div> </div>

Datei anzeigen

@ -101,7 +101,7 @@
{{input type="checkbox" checked=wizard.after_time}} {{input type="checkbox" checked=wizard.after_time}}
<span>{{i18n "admin.wizard.after_time_label"}}</span> <span>{{i18n "admin.wizard.after_time_label"}}</span>
{{d-button {{d-button
action=(action "setNextSessionScheduled") action="setNextSessionScheduled"
translatedLabel=nextSessionScheduledLabel translatedLabel=nextSessionScheduledLabel
class="btn-after-time" class="btn-after-time"
icon="far-calendar"}} icon="far-calendar"}}
@ -191,7 +191,7 @@
currentActionId=currentAction.id currentActionId=currentAction.id
wizard=wizard wizard=wizard
apis=apis apis=apis
removeAction=(action "removeAction") removeAction="removeAction"
wizardFields=wizardFields}} wizardFields=wizardFields}}
{{/each}} {{/each}}

Datei anzeigen

@ -8,7 +8,7 @@
)}} )}}
{{d-button {{d-button
action=(action "createWizard") action="createWizard"
label="admin.wizard.create" label="admin.wizard.create"
icon="plus"}} icon="plus"}}
</div> </div>

Datei anzeigen

@ -34,17 +34,17 @@
{{/if}} {{/if}}
{{/if}} {{/if}}
{{d-button {{d-button
action=(action "destroy") action="destroy"
icon="trash-alt" icon="trash-alt"
class="destroy" class="destroy"
disabled=destroyDisabled}} disabled=destroyDisabled}}
{{d-button {{d-button
icon="save" icon="save"
action=(action "save") action="save"
disabled=saveDisabled disabled=saveDisabled
class="save"}} class="save"}}
{{d-button {{d-button
action=(action "close") action="close"
icon="times" icon="times"
disabled=closeDisabled}} disabled=closeDisabled}}
</td> </td>
@ -69,7 +69,7 @@
</td> </td>
{{else}} {{else}}
<td class="actions"> <td class="actions">
{{d-button action=(action "edit") icon="pencil-alt"}} {{d-button action="edit" icon="pencil-alt"}}
</td> </td>
{{/if}} {{/if}}
{{/if}} {{/if}}

Datei anzeigen

@ -1,6 +1,6 @@
{{#if showUndo}} {{#if showUndo}}
{{d-button {{d-button
action=(action "undoChanges") action="undoChanges"
icon=undoIcon icon=undoIcon
label=undoKey label=undoKey
class="undo-changes"}} class="undo-changes"}}

Datei anzeigen

@ -1,6 +1,6 @@
{{#if showUndo}} {{#if showUndo}}
{{d-button {{d-button
action=(action "undoChanges") action="undoChanges"
icon=undoIcon icon=undoIcon
label=undoKey label=undoKey
class="undo-changes"}} class="undo-changes"}}

Datei anzeigen

@ -4,16 +4,17 @@
{{#if anyLinks}} {{#if anyLinks}}
{{#each links as |link|}} {{#each links as |link|}}
<div data-id={{link.id}}> <div data-id={{link.id}}>
{{d-button action=(action "change") actionParam=link.id translatedLabel=link.label class=link.classes}} {{d-button action="change" actionParam=link.id translatedLabel=link.label class=link.classes}}
{{#unless link.first}} {{#unless link.first}}
{{d-button action=(action "back") actionParam=link icon="arrow-left" class="back"}} {{d-button action="back" actionParam=link icon="arrow-left" class="back"}}
{{/unless}} {{/unless}}
{{#unless link.last}} {{#unless link.last}}
{{d-button action=(action "forward") actionParam=link icon="arrow-right" class="forward"}} {{d-button action="forward" actionParam=link icon="arrow-right" class="forward"}}
{{/unless}} {{/unless}}
{{d-button action=(action "remove") actionParam=link.id icon="times" class="remove"}} {{d-button action="remove" actionParam=link.id icon="times" class="remove"}}
</div> </div>
{{/each}} {{/each}}
{{/if}} {{/if}}
{{d-button action=(action "add") label="admin.wizard.add" icon="plus"}} {{d-button action="add" label="admin.wizard.add" icon="plus"}}
</div> </div>

Datei anzeigen

@ -15,6 +15,6 @@
{{#if canAdd}} {{#if canAdd}}
<span class="add-mapper-input"> <span class="add-mapper-input">
{{d-button action=(action "add") label="admin.wizard.add" icon="plus"}} {{d-button action="add" label="admin.wizard.add" icon="plus"}}
</span> </span>
{{/if}} {{/if}}

Datei anzeigen

@ -6,13 +6,13 @@
<div class="wizard-editor-gutter"> <div class="wizard-editor-gutter">
{{#if previewEnabled}} {{#if previewEnabled}}
{{d-button {{d-button
action=(action "togglePreview") action="togglePreview"
translatedLabel=previewLabel}} translatedLabel=previewLabel}}
{{/if}} {{/if}}
{{#if fieldsEnabled}} {{#if fieldsEnabled}}
{{d-button {{d-button
action=(action "togglePopover") action="togglePopover"
translatedLabel=popoverLabel}} translatedLabel=popoverLabel}}
{{#if showPopover}} {{#if showPopover}}

Datei anzeigen

@ -9,7 +9,7 @@
<div class="modal-footer"> <div class="modal-footer">
{{d-button {{d-button
action=(action "submit") action="submit"
class="btn-primary" class="btn-primary"
label="admin.wizard.after_time_modal.done" label="admin.wizard.after_time_modal.done"
disabled=submitDisabled}} disabled=submitDisabled}}