summaryrefslogblamecommitdiffstatshomepage
path: root/frontend/src/lib/components/SubmitButton.svelte
blob: 8ac90b9d8069746291272fb6b1999d73d708bd89 (plain) (tree)
1
2
3
4
5
6
7






                                                                                              
<script lang="ts">
	export let active = false;

	$: title = active ? 'Save pending changes' : 'Save (no changes pending)';
</script>

<button type="submit" class:active class="btn-slate [&.active]:btn-blue" {title}>Save</button>