fix & doc: don't show number of projects until loaded; refactor task list
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
Nearby
|
||||
<span
|
||||
class="font-semibold text-sm bg-slate-200 px-1.5 py-0.5 rounded-md"
|
||||
>{{ localCount }}</span
|
||||
>{{ localCount > -1 ? localCount : "?" }}</span
|
||||
>
|
||||
</a>
|
||||
</li>
|
||||
@@ -59,7 +59,7 @@
|
||||
Anywhere
|
||||
<span
|
||||
class="font-semibold text-sm bg-slate-200 px-1.5 py-0.5 rounded-md"
|
||||
>{{ remoteCount }}</span
|
||||
>{{ remoteCount > -1 ? remoteCount : "?" }}</span
|
||||
>
|
||||
</a>
|
||||
</li>
|
||||
@@ -158,8 +158,8 @@ export default class DiscoverView extends Vue {
|
||||
projects: ProjectData[] = [];
|
||||
isLocalActive = true;
|
||||
isRemoteActive = false;
|
||||
localCount = 0;
|
||||
remoteCount = 0;
|
||||
localCount = -1;
|
||||
remoteCount = -1;
|
||||
searchBox: { name: string; bbox: BoundingBox } | null = null;
|
||||
isLoading = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user