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

Selector active type fixes

Dieser Commit ist enthalten in:
Angus McLeod 2020-04-23 12:28:31 +10:00
Ursprung 428cccd643
Commit 082be35199

Datei anzeigen

@ -37,7 +37,7 @@ export default Component.extend({
showTypes: false, showTypes: false,
didInsertElement() { didInsertElement() {
if (this.activeType && !this[`${this.activeType}Enabled`]) { if (!this.activeType || (this.activeType && !this[`${this.activeType}Enabled`])) {
later(() => this.resetActiveType()); later(() => this.resetActiveType());
} }
@ -69,7 +69,7 @@ export default Component.extend({
}, },
typeLabel(type) { typeLabel(type) {
return I18n.t(`admin.wizard.selector.label.${snakeCase(type)}`) return type ? I18n.t(`admin.wizard.selector.label.${snakeCase(type)}`) : null;
}, },
@observes('inputType') @observes('inputType')