Browse Source

Search Result Name Not Found

qdn-metadata
AlphaX-Projects 3 years ago committed by GitHub
parent
commit
eeca17b1f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      qortal-ui-plugins/plugins/core/qdn/websites.src.js

6
qortal-ui-plugins/plugins/core/qdn/websites.src.js

@ -303,14 +303,18 @@ class Websites extends LitElement {
async searchResult() {
let searchName = this.shadowRoot.getElementById('searchName').value
if (searchName.length === 0) {
parentEpml.request('showSnackBar', 'Name cannot be empty!')
parentEpml.request('showSnackBar', 'Name Can Not Be Empty!')
} else {
let searchResources = await parentEpml.request('apiCall', {
url: `/arbitrary/resources/search?service=${this.service}&query=${searchName}&default=true&limit=5&reverse=false&includestatus=true`
})
if (this.isEmptyArray(searchResources)) {
parentEpml.request('showSnackBar', 'Name Not Found!')
} else {
this.searchResources = searchResources
}
}
}
renderSearchAvatar(searchObj) {
let name = searchObj.name

Loading…
Cancel
Save