From ce3129ae7e3462940cf7009a0b9c2499d5c96b64 Mon Sep 17 00:00:00 2001 From: PhilReact Date: Thu, 26 Oct 2023 02:03:29 +0300 Subject: [PATCH] added wallet fields --- core/language/us.json | 3 +- .../friends-view/profile-modal-update.js | 131 +++++++++++------- 2 files changed, 82 insertions(+), 52 deletions(-) diff --git a/core/language/us.json b/core/language/us.json index f9a003ec..ddc95e4b 100644 --- a/core/language/us.json +++ b/core/language/us.json @@ -1218,6 +1218,7 @@ "profile2": "Go to name registration", "profile3": "Update profile", "profile4": "Tagline", - "profile5": "Bio" + "profile5": "Bio", + "profile6": "Wallet Addresses" } } \ No newline at end of file diff --git a/core/src/components/friends-view/profile-modal-update.js b/core/src/components/friends-view/profile-modal-update.js index e7ad8777..49c86119 100644 --- a/core/src/components/friends-view/profile-modal-update.js +++ b/core/src/components/friends-view/profile-modal-update.js @@ -23,8 +23,9 @@ class ProfileModalUpdate extends connect(store)(LitElement) { onSubmit: { attribute: false }, editContent: { type: Object }, onClose: { attribute: false }, - tagline: {type: String}, - bio: {type: String} + tagline: { type: String }, + bio: { type: String }, + wallets: { type: Array }, }; } @@ -34,11 +35,21 @@ class ProfileModalUpdate extends connect(store)(LitElement) { this.isLoading = false; this.nodeUrl = this.getNodeUrl(); this.myNode = this.getMyNode(); - this.tagline = ""; - this.bio = "", - this.walletList = [ - "btcWallet", "ltcWallet", "dogeWallet","dgbWallet", "rvnWallet", "arrrWallet" - ] + this.tagline = ''; + (this.bio = ''), + (this.walletList = [ + 'btc_Address', + 'ltc_Address', + 'doge_Address', + 'dgb_Address', + 'rvn_Address', + 'arrr_Address', + ]); + let wallets = {}; + this.walletList.forEach((item) => { + wallets[item] = ''; + }); + this.wallets = wallets; } static get styles() { @@ -222,50 +233,68 @@ class ProfileModalUpdate extends connect(store)(LitElement) {