diff --git a/ng-app/src/apps/AutomergeEditor.svelte b/ng-app/src/apps/AutomergeEditor.svelte
index 074d2a0..14d3769 100644
--- a/ng-app/src/apps/AutomergeEditor.svelte
+++ b/ng-app/src/apps/AutomergeEditor.svelte
@@ -23,11 +23,13 @@
import {
cur_tab_register_on_save,
cur_tab_deregister_on_save,
- cur_tab_branch_class
+ cur_tab_doc_can_edit,
+ set_view_or_edit
} from "../tab";
import { t } from "svelte-i18n";
import wasmUrl from "@automerge/automerge/automerge.wasm?url";
import { next as A } from "@automerge/automerge/slim";
+ import{ PencilSquare } from "svelte-heros-v2";
import AMap from "./automerge/AMap.svelte";
@@ -116,14 +118,31 @@
toast_error(display_error(e));
}
}
+
+ const edit = () => {
+ set_view_or_edit(false);
+ }
{#if safari_error}
{$t("doc.empty")}
+ {/if} {/if}