0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-09-19 15:21:11 +02: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",
initialize: function (container) {
const messageBus = container.lookup("message-bus:main");
const messageBus = container.lookup("service:message-bus");
const siteSettings = container.lookup("site-settings:main");
if (!siteSettings.custom_wizard_enabled || !messageBus) {

Datei anzeigen

@ -1,6 +1,8 @@
{{custom-wizard-category-selector
categories=categories
whitelist=field.content
maximum=field.limit
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
tags=field.value
maximum=field.limit
tabindex=field.tabindex
tagGroups=field.tag_groups
everyTag=true
}}
options=(hash
maximum=field.limit
)}}

Datei anzeigen

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

Datei anzeigen

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

Datei anzeigen

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

Datei anzeigen

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