4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-11 17:55:51 +00:00

Fixed "adress" typo in code

This commit is contained in:
QuickMythril 2024-10-17 08:20:28 -04:00
parent edf1160d27
commit d86e3134c0
4 changed files with 35 additions and 35 deletions

View File

@ -20,7 +20,7 @@ class ChatModals extends LitElement {
hidePrivateMessageModal: { type: Function }, hidePrivateMessageModal: { type: Function },
hideBlockUserModal: { type: Function }, hideBlockUserModal: { type: Function },
toblockaddress: { type: String, attribute: true }, toblockaddress: { type: String, attribute: true },
chatBlockedAdresses: { type: Array } chatBlockedAddresses: { type: Array }
} }
} }
@ -33,7 +33,7 @@ class ChatModals extends LitElement {
this.isLoading = false this.isLoading = false
this.hidePrivateMessageModal = () => { } this.hidePrivateMessageModal = () => { }
this.hideBlockUserModal = () => { } this.hideBlockUserModal = () => { }
this.chatBlockedAdresses = [] this.chatBlockedAddresses = []
} }
render() { render() {
@ -313,11 +313,11 @@ class ChatModals extends LitElement {
}, 500) }, 500)
} }
async getChatBlockedAdresses() { async getchatBlockedAddresses() {
const chatBlockedAdresses = await parentEpml.request('apiCall', { const chatBlockedAddresses = await parentEpml.request('apiCall', {
url: `/lists/blockedAddresses?apiKey=${this.getApiKey()}` url: `/lists/blockedAddresses?apiKey=${this.getApiKey()}`
}) })
this.chatBlockedAdresses = chatBlockedAdresses this.chatBlockedAddresses = chatBlockedAddresses
} }
async chatBlockAddress() { async chatBlockAddress() {
@ -339,8 +339,8 @@ class ChatModals extends LitElement {
}) })
if (ret === true) { if (ret === true) {
this.chatBlockedAdresses = this.chatBlockedAdresses.filter(item => item != address) this.chatBlockedAddresses = this.chatBlockedAddresses.filter(item => item != address)
this.chatBlockedAdresses.push(address) this.chatBlockedAddresses.push(address)
this.getChatBlockedList() this.getChatBlockedList()
this.hideBlockUserModal() this.hideBlockUserModal()
let err1string = get("blockpage.bcchange2") let err1string = get("blockpage.bcchange2")

View File

@ -54,9 +54,9 @@ class LevelFounder extends LitElement {
} }
renderFounder() { renderFounder() {
let adressfounder = this.memberInfo.flags let addressfounder = this.memberInfo.flags
if (adressfounder === 1) { if (addressfounder === 1) {
return html` return html`
<span id="founderTooltip" class="badge">F</span> <span id="founderTooltip" class="badge">F</span>
<paper-tooltip class="custom" for="founderTooltip" position="top">FOUNDER</paper-tooltip> <paper-tooltip class="custom" for="founderTooltip" position="top">FOUNDER</paper-tooltip>
@ -67,13 +67,13 @@ class LevelFounder extends LitElement {
} }
renderLevel() { renderLevel() {
let adresslevel = this.memberInfo.level let addresslevel = this.memberInfo.level
return adresslevel ? return addresslevel ?
html` html`
<img id="level-img" src=${`/img/badges/level-${adresslevel}.png`} alt=${`badge-${adresslevel}`} class="message-data-level" /> <img id="level-img" src=${`/img/badges/level-${addresslevel}.png`} alt=${`badge-${addresslevel}`} class="message-data-level" />
<paper-tooltip class="level-img-tooltip" for="level-img" position="top"> <paper-tooltip class="level-img-tooltip" for="level-img" position="top">
${translate("mintingpage.mchange27")} ${adresslevel} ${translate("mintingpage.mchange27")} ${addresslevel}
</paper-tooltip> </paper-tooltip>
` `
: '' : ''

View File

@ -19,7 +19,7 @@ class NameMenu extends LitElement {
return { return {
toblockaddress: { type: String, attribute: true }, toblockaddress: { type: String, attribute: true },
nametodialog: { type: String, attribute: true }, nametodialog: { type: String, attribute: true },
chatBlockedAdresses: { type: Array }, chatBlockedAddresses: { type: Array },
selectedAddress: { type: Object }, selectedAddress: { type: Object },
config: { type: Object }, config: { type: Object },
myAddress: { type: Object, reflect: true }, myAddress: { type: Object, reflect: true },
@ -36,7 +36,7 @@ class NameMenu extends LitElement {
constructor() { constructor() {
super() super()
this.chatBlockedAdresses = [] this.chatBlockedAddresses = []
this.selectedAddress = window.parent.reduxStore.getState().app.selectedAddress.address this.selectedAddress = window.parent.reduxStore.getState().app.selectedAddress.address
this.myAddress = {} this.myAddress = {}
this.balance = 1 this.balance = 1
@ -94,10 +94,10 @@ class NameMenu extends LitElement {
} }
firstUpdated() { firstUpdated() {
this.getChatBlockedAdresses() this.getchatBlockedAddresses()
setInterval(() => { setInterval(() => {
this.getChatBlockedAdresses() this.getchatBlockedAddresses()
}, 60000) }, 60000)
window.onclick = function (event) { window.onclick = function (event) {
@ -185,8 +185,8 @@ class NameMenu extends LitElement {
}, 500) }, 500)
} }
async getChatBlockedAdresses() { async getchatBlockedAddresses() {
this.chatBlockedAdresses = await parentEpml.request('apiCall', { this.chatBlockedAddresses = await parentEpml.request('apiCall', {
url: `/lists/blockedAddresses?apiKey=${this.getApiKey()}` url: `/lists/blockedAddresses?apiKey=${this.getApiKey()}`
}) })
} }
@ -210,8 +210,8 @@ class NameMenu extends LitElement {
}) })
if (ret === true) { if (ret === true) {
this.chatBlockedAdresses = this.chatBlockedAdresses.filter(item => item != address) this.chatBlockedAddresses = this.chatBlockedAddresses.filter(item => item != address)
this.chatBlockedAdresses.push(address) this.chatBlockedAddresses.push(address)
this.getChatBlockedList() this.getChatBlockedList()
this.closeMenu() this.closeMenu()
this.shadowRoot.querySelector('#blockNameDialog').close() this.shadowRoot.querySelector('#blockNameDialog').close()

View File

@ -3148,9 +3148,9 @@ class MultiWallet extends LitElement {
this.shadowRoot.querySelector('#arrrBookDialog').close() this.shadowRoot.querySelector('#arrrBookDialog').close()
} }
removeQortAddress(adressObj) { removeQortAddress(addressObj) {
const theQortalAddressBook = 'addressbookQort-' + this.bookQortalAddress const theQortalAddressBook = 'addressbookQort-' + this.bookQortalAddress
const addressToRemove = adressObj const addressToRemove = addressObj
this.newQortBookFilter = [] this.newQortBookFilter = []
this.newQortBookFilter = this.qortBook.filter((item) => item.address !== addressToRemove) this.newQortBookFilter = this.qortBook.filter((item) => item.address !== addressToRemove)
const myNewObj = JSON.stringify(this.newQortBookFilter) const myNewObj = JSON.stringify(this.newQortBookFilter)
@ -3159,9 +3159,9 @@ class MultiWallet extends LitElement {
this.qortBook = JSON.parse(localStorage.getItem(theQortalAddressBook) || "[]") this.qortBook = JSON.parse(localStorage.getItem(theQortalAddressBook) || "[]")
} }
removeBtcAddress(adressObj) { removeBtcAddress(addressObj) {
const theBitcoinAddressBook = 'addressbookBtc-' + this.bookBitcoinAddress const theBitcoinAddressBook = 'addressbookBtc-' + this.bookBitcoinAddress
const addressToRemove = adressObj const addressToRemove = addressObj
this.newBtcBookFilter = [] this.newBtcBookFilter = []
this.newBtcBookFilter = this.btcBook.filter((item) => item.address !== addressToRemove) this.newBtcBookFilter = this.btcBook.filter((item) => item.address !== addressToRemove)
const myNewObj = JSON.stringify(this.newBtcBookFilter) const myNewObj = JSON.stringify(this.newBtcBookFilter)
@ -3170,9 +3170,9 @@ class MultiWallet extends LitElement {
this.btcBook = JSON.parse(localStorage.getItem(theBitcoinAddressBook) || "[]") this.btcBook = JSON.parse(localStorage.getItem(theBitcoinAddressBook) || "[]")
} }
removeLtcAddress(adressObj) { removeLtcAddress(addressObj) {
const theLitecoinAddressBook = 'addressbookLtc-' + this.bookLitecoinAddress const theLitecoinAddressBook = 'addressbookLtc-' + this.bookLitecoinAddress
const addressToRemove = adressObj const addressToRemove = addressObj
this.newLtcBookFilter = [] this.newLtcBookFilter = []
this.newLtcBookFilter = this.ltcBook.filter((item) => item.address !== addressToRemove) this.newLtcBookFilter = this.ltcBook.filter((item) => item.address !== addressToRemove)
const myNewObj = JSON.stringify(this.newLtcBookFilter) const myNewObj = JSON.stringify(this.newLtcBookFilter)
@ -3181,9 +3181,9 @@ class MultiWallet extends LitElement {
this.ltcBook = JSON.parse(localStorage.getItem(theLitecoinAddressBook) || "[]") this.ltcBook = JSON.parse(localStorage.getItem(theLitecoinAddressBook) || "[]")
} }
removeDogeAddress(adressObj) { removeDogeAddress(addressObj) {
const theDogecoinAddressBook = 'addressbookDoge-' + this.bookDogecoinAddress const theDogecoinAddressBook = 'addressbookDoge-' + this.bookDogecoinAddress
const addressToRemove = adressObj const addressToRemove = addressObj
this.newDogeBookFilter = [] this.newDogeBookFilter = []
this.newDogeBookFilter = this.dogeBook.filter((item) => item.address !== addressToRemove) this.newDogeBookFilter = this.dogeBook.filter((item) => item.address !== addressToRemove)
const myNewObj = JSON.stringify(this.newDogeBookFilter) const myNewObj = JSON.stringify(this.newDogeBookFilter)
@ -3192,9 +3192,9 @@ class MultiWallet extends LitElement {
this.dogeBook = JSON.parse(localStorage.getItem(theDogecoinAddressBook) || "[]") this.dogeBook = JSON.parse(localStorage.getItem(theDogecoinAddressBook) || "[]")
} }
removeDgbAddress(adressObj) { removeDgbAddress(addressObj) {
const theDigibyteAddressBook = 'addressbookDgb-' + this.bookDigibyteAddress const theDigibyteAddressBook = 'addressbookDgb-' + this.bookDigibyteAddress
const addressToRemove = adressObj const addressToRemove = addressObj
this.newDgbBookFilter = [] this.newDgbBookFilter = []
this.newDgbBookFilter = this.dgbBook.filter((item) => item.address !== addressToRemove) this.newDgbBookFilter = this.dgbBook.filter((item) => item.address !== addressToRemove)
const myNewObj = JSON.stringify(this.newDgbBookFilter) const myNewObj = JSON.stringify(this.newDgbBookFilter)
@ -3203,9 +3203,9 @@ class MultiWallet extends LitElement {
this.dgbBook = JSON.parse(localStorage.getItem(theDigibyteAddressBook) || "[]") this.dgbBook = JSON.parse(localStorage.getItem(theDigibyteAddressBook) || "[]")
} }
removeRvnAddress(adressObj) { removeRvnAddress(addressObj) {
const theRavencoinAddressBook = 'addressbookRvn-' + this.bookRavencoinAddress const theRavencoinAddressBook = 'addressbookRvn-' + this.bookRavencoinAddress
const addressToRemove = adressObj const addressToRemove = addressObj
this.newRvnBookFilter = [] this.newRvnBookFilter = []
this.newRvnBookFilter = this.rvnBook.filter((item) => item.address !== addressToRemove) this.newRvnBookFilter = this.rvnBook.filter((item) => item.address !== addressToRemove)
const myNewObj = JSON.stringify(this.newRvnBookFilter) const myNewObj = JSON.stringify(this.newRvnBookFilter)
@ -3214,9 +3214,9 @@ class MultiWallet extends LitElement {
this.rvnBook = JSON.parse(localStorage.getItem(theRavencoinAddressBook) || "[]") this.rvnBook = JSON.parse(localStorage.getItem(theRavencoinAddressBook) || "[]")
} }
removeArrrAddress(adressObj) { removeArrrAddress(addressObj) {
const thePiratechainAddressBook = 'addressbookArrr-' + this.bookPiratechainAddress const thePiratechainAddressBook = 'addressbookArrr-' + this.bookPiratechainAddress
const addressToRemove = adressObj const addressToRemove = addressObj
this.newArrrBookFilter = [] this.newArrrBookFilter = []
this.newArrrBookFilter = this.arrrBook.filter((item) => item.address !== addressToRemove) this.newArrrBookFilter = this.arrrBook.filter((item) => item.address !== addressToRemove)
const myNewObj = JSON.stringify(this.newArrrBookFilter) const myNewObj = JSON.stringify(this.newArrrBookFilter)