fix display name not showing in personalize
This commit is contained in:
parent
fc4e6bc9c3
commit
e048267a10
@ -11,13 +11,14 @@ import Globals from '../globals';
|
|||||||
import Q from '../q-module';
|
import Q from '../q-module';
|
||||||
import createTextMessage from './msg-txt';
|
import createTextMessage from './msg-txt';
|
||||||
import CombinedGuild from '../guild-combined';
|
import CombinedGuild from '../guild-combined';
|
||||||
|
import { ConnectionInfo } from '../data-types';
|
||||||
|
|
||||||
export default function createPersonalizeOverlay(document: Document, q: Q, guild: CombinedGuild, connection: any): HTMLElement {
|
export default function createPersonalizeOverlay(document: Document, q: Q, guild: CombinedGuild, connection: ConnectionInfo): HTMLElement {
|
||||||
let element = BaseElements.createOverlay(document, {
|
let element = BaseElements.createOverlay(document, {
|
||||||
class: 'content submit-dialog personalize', content: [
|
class: 'content submit-dialog personalize', content: [
|
||||||
createTextMessage(q, guild, { id: 'test-message', member: connection, sent: new Date(), text: 'Example Message' }),
|
createTextMessage(q, guild, { id: 'test-message', member: connection, sent: new Date(), text: 'Example Message' }),
|
||||||
{ class: 'text-input', placeholder: 'New Display Name',
|
{ class: 'text-input', placeholder: 'New Display Name',
|
||||||
spellcheck: 'false', contenteditable: 'plaintext-only', content: connection.display_name },
|
spellcheck: 'false', contenteditable: 'plaintext-only', content: connection.displayName },
|
||||||
{ class: 'image-input avatar-input', content: [
|
{ class: 'image-input avatar-input', content: [
|
||||||
{ tag: 'label', class: 'image-input-label avatar-input-label button', content: [
|
{ tag: 'label', class: 'image-input-label avatar-input-label button', content: [
|
||||||
'Select New Avatar',
|
'Select New Avatar',
|
||||||
|
Loading…
Reference in New Issue
Block a user