Browse Source

fix placeholder text

pull/127/head
Phillip Lang Martinez 2 years ago
parent
commit
c49769de0b
  1. 16
      qortal-ui-plugins/plugins/core/components/ChatPage.js

16
qortal-ui-plugins/plugins/core/components/ChatPage.js

@ -820,15 +820,15 @@ class ChatPage extends LitElement {
} }
async updated(changedProperties) { async updated(changedProperties) {
if (changedProperties && changedProperties.has('userLanguage')) { if (changedProperties && changedProperties.has('userLanguage')) {
await new Promise(r => setTimeout(r, 100)); const userLang = changedProperties.get('userLanguage')
this.chatEditorPlaceholder = this.isReceipient === true ? `Message ${this._chatId}` : `${get("chatpage.cchange8")}`;
} if(userLang){
// if (changedProperties && changedProperties.has('isEditMessageOpen')) { await new Promise(r => setTimeout(r, 100));
// console.log(this.isEditMessageOpen, "1111"); this.chatEditorPlaceholder = this.isReceipient === true ? `Message ${this._chatId}` : `${get("chatpage.cchange8")}`;
// } }
if (changedProperties && changedProperties.has('imageFile')) {
console.log(this.imageFile, "1111");
} }
} }

Loading…
Cancel
Save