mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: revert changes to back component
This commit is contained in:
@@ -1,16 +1,8 @@
|
||||
<script lang="ts">
|
||||
import { goto } from '$app/navigation';
|
||||
|
||||
export let href: string;
|
||||
|
||||
function goBack() {
|
||||
if (history.length > 1) {
|
||||
history.back();
|
||||
} else goto(href);
|
||||
}
|
||||
</script>
|
||||
|
||||
<button on:click={() => goBack()}>
|
||||
<a {href}>
|
||||
<i class="icon-cheveron-left" />
|
||||
<slot />
|
||||
</button>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user