|
@ -86,7 +86,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<!-- Results List --> |
|
|
<!-- Results List --> |
|
|
<InfiniteScroll @reached-bottom="loadMoreData" v-if="!isChoosingSearchBox"> |
|
|
<InfiniteScroll @reached-bottom="loadMoreData"> |
|
|
<ul> |
|
|
<ul> |
|
|
<li |
|
|
<li |
|
|
class="border-b border-slate-300" |
|
|
class="border-b border-slate-300" |
|
@ -156,7 +156,6 @@ export default class DiscoverView extends Vue { |
|
|
apiServer = ""; |
|
|
apiServer = ""; |
|
|
searchTerms = ""; |
|
|
searchTerms = ""; |
|
|
projects: ProjectData[] = []; |
|
|
projects: ProjectData[] = []; |
|
|
isChoosingSearchBox = false; |
|
|
|
|
|
isLocalActive = true; |
|
|
isLocalActive = true; |
|
|
isRemoteActive = false; |
|
|
isRemoteActive = false; |
|
|
localCount = 0; |
|
|
localCount = 0; |
|
@ -180,7 +179,13 @@ export default class DiscoverView extends Vue { |
|
|
const allAccounts = await accountsDB.accounts.toArray(); |
|
|
const allAccounts = await accountsDB.accounts.toArray(); |
|
|
this.allMyDids = allAccounts.map((acc) => acc.did); |
|
|
this.allMyDids = allAccounts.map((acc) => acc.did); |
|
|
|
|
|
|
|
|
this.searchLocal(); |
|
|
if (this.searchBox) { |
|
|
|
|
|
await this.searchLocal(); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.isLocalActive = false; |
|
|
|
|
|
this.isRemoteActive = true; |
|
|
|
|
|
await this.searchAll(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public async buildHeaders(): Promise<HeadersInit> { |
|
|
public async buildHeaders(): Promise<HeadersInit> { |
|
|