Selector active type fixes
Dieser Commit ist enthalten in:
Ursprung
428cccd643
Commit
082be35199
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -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')
|
||||||
|
|
Laden …
In neuem Issue referenzieren