0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-09-19 23:31:11 +02: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,
didInsertElement() {
if (this.activeType && !this[`${this.activeType}Enabled`]) {
if (!this.activeType || (this.activeType && !this[`${this.activeType}Enabled`])) {
later(() => this.resetActiveType());
}
@ -69,7 +69,7 @@ export default Component.extend({
},
typeLabel(type) {
return I18n.t(`admin.wizard.selector.label.${snakeCase(type)}`)
return type ? I18n.t(`admin.wizard.selector.label.${snakeCase(type)}`) : null;
},
@observes('inputType')