feat: back button

This commit is contained in:
Arman
2022-10-07 11:08:15 +02:00
parent 8cb2714519
commit d41f5df811
@@ -1,10 +1,12 @@
<script lang="ts">
import { afterNavigate } from '$app/navigation';
import { base } from '$app/paths';
import { page } from '$app/stores';
import { updateLayout } from '$lib/stores/layout';
import { onMount } from 'svelte';
import { bucket } from './store';
const projectId = $page.params.project;
const bucketId = $page.params.bucket;
const path = `storage/bucket/${bucketId}`;
@@ -24,13 +26,15 @@
title: $bucket.name,
level: 4,
breadcrumbs: {
title: $bucket.name,
href: `bucket/${bucketId}`
title: $bucket.name + 'test',
href: `storage/bucket/${bucketId}`
},
copy: {
text: 'Bucket ID',
value: bucketId
},
back: `${base}/console/project-${projectId}/storage`,
tabs: [
{
href: path,