From 8cb7f4cc726dd203c973bd84ac5ecf58b6bafb0a Mon Sep 17 00:00:00 2001 From: PhilReact Date: Thu, 12 Oct 2023 22:35:09 -0500 Subject: [PATCH] fix bugs --- core/language/us.json | 5 +- core/src/components/app-view.js | 4 +- .../friends-view/ChatSideNavHeads.js | 4 +- .../friends-view/add-friends-modal.js | 15 +++- .../friends-view/core-sync-status.js | 79 +++++++++++++++++++ .../friends-view/friend-item-actions.js | 3 + .../friends-view/friends-side-panel-parent.js | 2 +- .../friends-view/friends-side-panel.js | 10 ++- .../components/friends-view/friends-view.js | 8 +- .../notification-bell-general.js | 5 +- 10 files changed, 119 insertions(+), 16 deletions(-) create mode 100644 core/src/components/friends-view/core-sync-status.js diff --git a/core/language/us.json b/core/language/us.json index b61e21aa..c9ceae75 100644 --- a/core/language/us.json +++ b/core/language/us.json @@ -1175,7 +1175,10 @@ "notifications": { "notify1": "Confirming transaction", "notify2": "Transaction confirmed", - "explanation": "Your transaction is getting confirmed. To track its progress, click on the bell icon." + "explanation": "Your transaction is getting confirmed. To track its progress, click on the bell icon.", + "status1": "Fully synced", + "status2": "Not synced", + "notify3": "No notifications" }, "friends": { "friend1": "Add name", diff --git a/core/src/components/app-view.js b/core/src/components/app-view.js index 7be45ec4..55bcec24 100644 --- a/core/src/components/app-view.js +++ b/core/src/components/app-view.js @@ -45,7 +45,7 @@ import './notification-view/notification-bell.js' import './notification-view/notification-bell-general.js' import './friends-view/friends-side-panel-parent.js' import './friends-view/save-settings-qdn.js' - +import './friends-view/core-sync-status.js' const parentEpml = new Epml({ type: 'WINDOW', source: window.parent }) class AppView extends connect(store)(LitElement) { @@ -564,7 +564,7 @@ class AppView extends connect(store)(LitElement) { - +
diff --git a/core/src/components/friends-view/ChatSideNavHeads.js b/core/src/components/friends-view/ChatSideNavHeads.js index 534756ac..2bae1d7a 100644 --- a/core/src/components/friends-view/ChatSideNavHeads.js +++ b/core/src/components/friends-view/ChatSideNavHeads.js @@ -16,7 +16,8 @@ class ChatSideNavHeads extends LitElement { activeChatHeadUrl: { type: String }, isImageLoaded: { type: Boolean }, setActiveChatHeadUrl: {attribute: false}, - openEditFriend: {attribute: false} + openEditFriend: {attribute: false}, + closeSidePanel: {attribute: false, type: Object} } } @@ -192,6 +193,7 @@ class ChatSideNavHeads extends LitElement { this.openEditFriend(this.chatInfo) }} name=${this.chatInfo.name} + .closeSidePanel=${this.closeSidePanel} > ` } diff --git a/core/src/components/friends-view/add-friends-modal.js b/core/src/components/friends-view/add-friends-modal.js index 0f420d85..087d1786 100644 --- a/core/src/components/friends-view/add-friends-modal.js +++ b/core/src/components/friends-view/add-friends-modal.js @@ -268,6 +268,8 @@ class AddFriendsModal extends connect(store)(LitElement) { this.notes = this.editContent.notes ?? ''; this.willFollow = this.editContent.willFollow ?? true; this.alias = this.editContent.alias ?? ''; + this.requestUpdate() + console.log('this.editContent', this.editContent ) } if ( changedProperties && @@ -300,6 +302,7 @@ class AddFriendsModal extends connect(store)(LitElement) { } render() { + console.log('update2') return html`