feat: update layout

This commit is contained in:
Arman
2022-07-26 17:51:02 +02:00
parent 7cbcb6ce38
commit f6cfb6e76c
@@ -4,6 +4,7 @@
import { doc } from './store';
import { onMount } from 'svelte';
import { afterNavigate } from '$app/navigation';
import { base } from '$app/paths';
const databaseId = $page.params.database;
const collectionId = $page.params.collection;
@@ -19,7 +20,9 @@
}
updateLayout({
navigate: event,
title: `Document - ${$doc.$id}`,
title: 'Document',
copy: { text: 'Document ID', value: $doc.$id },
back: `${base}/console/${$page.params.project}/databases/database/${databaseId}/collection/${collectionId}`,
tabs: [
{
href: path,