successful commit toast

This commit is contained in:
Scott Chacon 2023-03-15 11:10:53 +01:00
parent 7730653aca
commit a8a2e2b0a9
2 changed files with 8 additions and 1 deletions

View File

@ -308,6 +308,9 @@
files: changedFiles,
push: false
}).then((result) => {
toast.success('Commit successful!', {
icon: '🎉'
});
commitMessage = '';
showPalette = false;
});

View File

@ -11,6 +11,7 @@
import { list as listDeltas } from '$lib/deltas';
import { slide } from 'svelte/transition';
import { navigating } from '$app/stores';
import toast from 'svelte-french-toast';
const getBranch = (params: { projectId: string }) => invoke<string>('git_branch', params);
@ -46,6 +47,9 @@
files: filesSelectedForCommit,
push: false
}).then((result) => {
toast.success('Commit successful!', {
icon: '🎉'
});
commitMessage = '';
filesSelectedForCommit = [];
initiatedCommit = false;
@ -346,7 +350,7 @@
</div>
{:else}
<button
class="button text-whit rounded bg-blue-600 py-2 px-3 hover:bg-blue-700"
class="button rounded bg-blue-600 py-2 px-3 text-white hover:bg-blue-700"
on:click={() => {
filesSelectedForCommit = $filesStatus.map((file) => {
return file.path;