much miscellany for small features and documentation & testing #82

Merged
anomalist merged 5 commits from many-misc into master 2023-11-19 01:48:50 +00:00
2 changed files with 9 additions and 3 deletions
Showing only changes of commit faf8f4f6a9 - Show all commits

View File

@@ -86,7 +86,7 @@
</div>
<!-- Results List -->
<InfiniteScroll @reached-bottom="loadMoreData" v-if="!isChoosingSearchBox">
<InfiniteScroll @reached-bottom="loadMoreData">
<ul>
<li
class="border-b border-slate-300"
@@ -156,7 +156,6 @@ export default class DiscoverView extends Vue {
apiServer = "";
searchTerms = "";
projects: ProjectData[] = [];
isChoosingSearchBox = false;
isLocalActive = true;
isRemoteActive = false;
localCount = 0;
@@ -180,7 +179,13 @@ export default class DiscoverView extends Vue {
const allAccounts = await accountsDB.accounts.toArray();
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> {

View File

@@ -214,6 +214,7 @@ export default class DiscoverView extends Vue {
},
-1,
);
this.$router.back();
} catch (err) {
this.$notify(
{