fix display name not showing in personalize

This commit is contained in:
Michael Peters 2021-12-04 06:08:28 -06:00
parent fc4e6bc9c3
commit e048267a10

View File

@ -11,13 +11,14 @@ import Globals from '../globals';
import Q from '../q-module';
import createTextMessage from './msg-txt';
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, {
class: 'content submit-dialog personalize', content: [
createTextMessage(q, guild, { id: 'test-message', member: connection, sent: new Date(), text: 'Example Message' }),
{ 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: [
{ tag: 'label', class: 'image-input-label avatar-input-label button', content: [
'Select New Avatar',