- spotlight refactoring

- subscription widget fix in admin
This commit is contained in:
Čarodej
2022-05-30 10:12:35 +02:00
parent 17d4bcd888
commit 317d7aefc3
3 changed files with 8 additions and 15 deletions

View File

@@ -898,18 +898,7 @@ export default {
params: { query: value },
})
.then((response) => {
// Show user result
if (this.activeFilter === 'users') {
this.results = response.data
}
// Show file result
if (!this.activeFilter) {
let files = response.data.files
let folders = response.data.folders
this.results = folders.concat(files)
}
this.results = response.data.data
})
.catch(() => this.$isSomethingWrong())
.finally(() => (this.isLoading = false))

View File

@@ -73,7 +73,7 @@ export default {
this.limitations.push({
message: payload.message[key],
isVisibleBar: item.total === -1,
isVisibleBar: item.total !== -1 && item.total !== 0,
distribution: [
{
progress: item.percentage,