this is a store now

This commit is contained in:
Scott Chacon 2023-03-09 12:19:16 -08:00
parent 0208068a0f
commit 7c98076032
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ export default async (params: { projectId: string }) => {
const store = writable(statuses);
appWindow.listen<Session>(`project://${params.projectId}/sessions`, async (event) => {
log.info(`Received sessions event, projectId: ${params.projectId}`);
log.info(`Status: Received sessions event, projectId: ${params.projectId}`);
const statusesGit = await listFiles(params);
const statuses = convertToStatuses(statusesGit)
store.set(statuses)

View File

@ -151,7 +151,7 @@
<div class="col-span-1 space-y-6">
<div>
<h2 class="text-lg font-bold text-zinc-500 mb-2">Work in Progress</h2>
{#if Object.entries(filesStatus).length == 0}
{#if $filesStatus.length == 0}
<div class="bg-green-900 text-green-500 p-4 rounded">Everything is committed</div>
{:else}
<div class="bg-blue-900 p-4 rounded">