Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-26 02:50:28 +01:00
Update action usage
Dieser Commit ist enthalten in:
Ursprung
72e16ad9c3
Commit
37685ea8cf
11 geänderte Dateien mit 20 neuen und 21 gelöschten Zeilen
|
@ -8,7 +8,7 @@
|
||||||
)}}
|
)}}
|
||||||
|
|
||||||
{{d-button
|
{{d-button
|
||||||
action="createApi"
|
action=(action "createApi")
|
||||||
label="admin.wizard.api.create"
|
label="admin.wizard.api.create"
|
||||||
icon="plus"}}
|
icon="plus"}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -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="addField"}}
|
action=(action "addField")}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -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="setNextSessionScheduled"
|
action=(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="removeAction"
|
removeAction=(action "removeAction")
|
||||||
wizardFields=wizardFields}}
|
wizardFields=wizardFields}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
)}}
|
)}}
|
||||||
|
|
||||||
{{d-button
|
{{d-button
|
||||||
action="createWizard"
|
action=(action "createWizard")
|
||||||
label="admin.wizard.create"
|
label="admin.wizard.create"
|
||||||
icon="plus"}}
|
icon="plus"}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -34,17 +34,17 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{d-button
|
{{d-button
|
||||||
action="destroy"
|
action=(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="save"
|
action=(action "save")
|
||||||
disabled=saveDisabled
|
disabled=saveDisabled
|
||||||
class="save"}}
|
class="save"}}
|
||||||
{{d-button
|
{{d-button
|
||||||
action="close"
|
action=(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="edit" icon="pencil-alt"}}
|
{{d-button action=(action "edit") icon="pencil-alt"}}
|
||||||
</td>
|
</td>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{{#if showUndo}}
|
{{#if showUndo}}
|
||||||
{{d-button
|
{{d-button
|
||||||
action="undoChanges"
|
action=(action "undoChanges")
|
||||||
icon=undoIcon
|
icon=undoIcon
|
||||||
label=undoKey
|
label=undoKey
|
||||||
class="undo-changes"}}
|
class="undo-changes"}}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{{#if showUndo}}
|
{{#if showUndo}}
|
||||||
{{d-button
|
{{d-button
|
||||||
action="undoChanges"
|
action=(action "undoChanges")
|
||||||
icon=undoIcon
|
icon=undoIcon
|
||||||
label=undoKey
|
label=undoKey
|
||||||
class="undo-changes"}}
|
class="undo-changes"}}
|
||||||
|
|
|
@ -4,17 +4,16 @@
|
||||||
{{#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="change" actionParam=link.id translatedLabel=link.label class=link.classes}}
|
{{d-button action=(action "change") actionParam=link.id translatedLabel=link.label class=link.classes}}
|
||||||
{{#unless link.first}}
|
{{#unless link.first}}
|
||||||
{{d-button action="back" actionParam=link icon="arrow-left" class="back"}}
|
{{d-button action=(action "back") actionParam=link icon="arrow-left" class="back"}}
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
{{#unless link.last}}
|
{{#unless link.last}}
|
||||||
{{d-button action="forward" actionParam=link icon="arrow-right" class="forward"}}
|
{{d-button action=(action "forward") actionParam=link icon="arrow-right" class="forward"}}
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
{{d-button action="remove" actionParam=link.id icon="times" class="remove"}}
|
{{d-button action=(action "remove") actionParam=link.id icon="times" class="remove"}}
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{d-button action="add" label="admin.wizard.add" icon="plus"}}
|
{{d-button action=(action "add") label="admin.wizard.add" icon="plus"}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,6 @@
|
||||||
|
|
||||||
{{#if canAdd}}
|
{{#if canAdd}}
|
||||||
<span class="add-mapper-input">
|
<span class="add-mapper-input">
|
||||||
{{d-button action="add" label="admin.wizard.add" icon="plus"}}
|
{{d-button action=(action "add") label="admin.wizard.add" icon="plus"}}
|
||||||
</span>
|
</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -6,13 +6,13 @@
|
||||||
<div class="wizard-editor-gutter">
|
<div class="wizard-editor-gutter">
|
||||||
{{#if previewEnabled}}
|
{{#if previewEnabled}}
|
||||||
{{d-button
|
{{d-button
|
||||||
action="togglePreview"
|
action=(action "togglePreview")
|
||||||
translatedLabel=previewLabel}}
|
translatedLabel=previewLabel}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if fieldsEnabled}}
|
{{#if fieldsEnabled}}
|
||||||
{{d-button
|
{{d-button
|
||||||
action="togglePopover"
|
action=(action "togglePopover")
|
||||||
translatedLabel=popoverLabel}}
|
translatedLabel=popoverLabel}}
|
||||||
|
|
||||||
{{#if showPopover}}
|
{{#if showPopover}}
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
{{d-button
|
{{d-button
|
||||||
action="submit"
|
action=(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}}
|
||||||
|
|
Laden …
In neuem Issue referenzieren