4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-11 17:55:51 +00:00
This commit is contained in:
AlphaX-Projects 2022-01-30 06:59:17 -08:00 committed by GitHub
parent fff560b2f7
commit 08833e28e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,6 +169,8 @@ class DataManagement extends LitElement {
firstUpdated() {
this.showManagement()
window.addEventListener('contextmenu', (event) => {
event.preventDefault()
this._textMenu(event)
@ -198,9 +200,9 @@ class DataManagement extends LitElement {
if (!configLoaded) {
setTimeout(this.getFollowedNames, 1)
setTimeout(this.getBlockedNames, 1)
setInterval(this.showManagement(), 30 * 1000)
setInterval(this.getFollowedNames, 30 * 1000)
setInterval(this.getBlockedNames, 30 * 1000)
setInterval(this.getManagementDetails, 30 * 1000)
configLoaded = true
}
})
@ -406,7 +408,7 @@ class DataManagement extends LitElement {
this.pages = undefined
}
async fetchManagementDetails() {
getManagementDetails = async () => {
const myDat = await parentEpml.request('apiCall', {
url: `/arbitrary/hosted/resources?apiKey=${this.getApiKey()}`
})
@ -481,7 +483,7 @@ class DataManagement extends LitElement {
}
async showManagement() {
await this.fetchManagementDetails()
await this.getManagementDetails()
await this.getResourcesGrid()
await this.updateItemsFromPage(1, true)
}