0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-09 20:02:54 +01:00

Minor style fixes and deprecation handling

Dieser Commit ist enthalten in:
Angus McLeod 2022-07-28 20:26:35 +01:00
Ursprung b078b9c8f4
Commit 1e56477253
7 geänderte Dateien mit 16 neuen und 10 gelöschten Zeilen

Datei anzeigen

@ -5,7 +5,7 @@ export default {
after: "message-bus", after: "message-bus",
initialize: function (container) { initialize: function (container) {
const messageBus = container.lookup("message-bus:main"); const messageBus = container.lookup("service:message-bus");
const siteSettings = container.lookup("site-settings:main"); const siteSettings = container.lookup("site-settings:main");
if (!siteSettings.custom_wizard_enabled || !messageBus) { if (!siteSettings.custom_wizard_enabled || !messageBus) {

Datei anzeigen

@ -1,6 +1,8 @@
{{custom-wizard-category-selector {{custom-wizard-category-selector
categories=categories categories=categories
whitelist=field.content whitelist=field.content
maximum=field.limit
onChange=(action (mut categories)) onChange=(action (mut categories))
tabindex=field.tabindex}} tabindex=field.tabindex
options=(hash
maximum=field.limit
)}}

Datei anzeigen

@ -1,7 +1,8 @@
{{custom-wizard-tag-chooser {{custom-wizard-tag-chooser
tags=field.value tags=field.value
maximum=field.limit
tabindex=field.tabindex tabindex=field.tabindex
tagGroups=field.tag_groups tagGroups=field.tag_groups
everyTag=true everyTag=true
}} options=(hash
maximum=field.limit
)}}

Datei anzeigen

@ -50,7 +50,7 @@
{{#if showDoneButton}} {{#if showDoneButton}}
<button type="button" class="wizard-btn done" {{action "done"}} disabled={{saving}} tabindex={{primaryButtonIndex}}> <button type="button" class="wizard-btn done" {{action "done"}} disabled={{saving}} tabindex={{primaryButtonIndex}}>
{{i18n "wizard.done"}} {{i18n "wizard.done_custom"}}
</button> </button>
{{/if}} {{/if}}
</div> </div>

Datei anzeigen

@ -16,6 +16,7 @@ body.custom-wizard {
height: auto; height: auto;
background-color: var(--secondary); background-color: var(--secondary);
border: 1px solid var(--primary-medium); border: 1px solid var(--primary-medium);
min-height: 150px;
&:focus { &:focus {
border-color: var(--tertiary); border-color: var(--tertiary);

Datei anzeigen

@ -1,5 +1,5 @@
body.custom-wizard { body.custom-wizard .d-header,
.d-header .panel { .global-notice,
display: none; .create-topics-notice {
} display: none;
} }

Datei anzeigen

@ -16,6 +16,8 @@ en:
x_characters: x_characters:
one: "%{count} Character" one: "%{count} Character"
other: "%{count} Characters" other: "%{count} Characters"
quit: "Maybe Later"
done_custom: "Done"
wizard_composer: wizard_composer:
show_preview: "Preview Post" show_preview: "Preview Post"