mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-29 20:43:37 +03:00
this is a store now
This commit is contained in:
parent
0208068a0f
commit
7c98076032
@ -28,7 +28,7 @@ export default async (params: { projectId: string }) => {
|
|||||||
const store = writable(statuses);
|
const store = writable(statuses);
|
||||||
|
|
||||||
appWindow.listen<Session>(`project://${params.projectId}/sessions`, async (event) => {
|
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 statusesGit = await listFiles(params);
|
||||||
const statuses = convertToStatuses(statusesGit)
|
const statuses = convertToStatuses(statusesGit)
|
||||||
store.set(statuses)
|
store.set(statuses)
|
||||||
|
@ -151,7 +151,7 @@
|
|||||||
<div class="col-span-1 space-y-6">
|
<div class="col-span-1 space-y-6">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="text-lg font-bold text-zinc-500 mb-2">Work in Progress</h2>
|
<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>
|
<div class="bg-green-900 text-green-500 p-4 rounded">Everything is committed</div>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="bg-blue-900 p-4 rounded">
|
<div class="bg-blue-900 p-4 rounded">
|
||||||
|
Loading…
Reference in New Issue
Block a user