Remove user fields that can't be interpolated
Dieser Commit ist enthalten in:
Ursprung
2d93313aab
Commit
6a469b2e50
2 geänderte Dateien mit 13 neuen und 1 gelöschten Zeilen
|
@ -5,6 +5,12 @@ import { scheduleOnce } from "@ember/runloop";
|
||||||
import Component from "@ember/component";
|
import Component from "@ember/component";
|
||||||
import I18n from "I18n";
|
import I18n from "I18n";
|
||||||
|
|
||||||
|
const excludedUserProperties = [
|
||||||
|
'avatar',
|
||||||
|
'profile_background',
|
||||||
|
'card_background'
|
||||||
|
];
|
||||||
|
|
||||||
export default Component.extend({
|
export default Component.extend({
|
||||||
classNames: 'wizard-text-editor',
|
classNames: 'wizard-text-editor',
|
||||||
barEnabled: true,
|
barEnabled: true,
|
||||||
|
@ -39,7 +45,8 @@ export default Component.extend({
|
||||||
|
|
||||||
@discourseComputed()
|
@discourseComputed()
|
||||||
userPropertyList() {
|
userPropertyList() {
|
||||||
return userProperties.map((f) => ` u{${f}}`);
|
return userProperties.filter((f) => !excludedUserProperties.includes(f))
|
||||||
|
.map((f) => ` u{${f}}`);
|
||||||
},
|
},
|
||||||
|
|
||||||
@discourseComputed('wizardFields')
|
@discourseComputed('wizardFields')
|
||||||
|
|
|
@ -444,6 +444,11 @@
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
|
color: $primary;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $secondary;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.wizard-editor-gutter-popover {
|
.wizard-editor-gutter-popover {
|
||||||
|
|
Laden …
In neuem Issue referenzieren