Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-09 20:02:54 +01:00
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 I18n from "I18n";
|
||||
|
||||
const excludedUserProperties = [
|
||||
'avatar',
|
||||
'profile_background',
|
||||
'card_background'
|
||||
];
|
||||
|
||||
export default Component.extend({
|
||||
classNames: 'wizard-text-editor',
|
||||
barEnabled: true,
|
||||
|
@ -39,7 +45,8 @@ export default Component.extend({
|
|||
|
||||
@discourseComputed()
|
||||
userPropertyList() {
|
||||
return userProperties.map((f) => ` u{${f}}`);
|
||||
return userProperties.filter((f) => !excludedUserProperties.includes(f))
|
||||
.map((f) => ` u{${f}}`);
|
||||
},
|
||||
|
||||
@discourseComputed('wizardFields')
|
||||
|
|
|
@ -444,6 +444,11 @@
|
|||
|
||||
.btn {
|
||||
margin-right: 10px;
|
||||
color: $primary;
|
||||
|
||||
&:hover {
|
||||
color: $secondary;
|
||||
}
|
||||
}
|
||||
|
||||
.wizard-editor-gutter-popover {
|
||||
|
|
Laden …
In neuem Issue referenzieren