diff --git a/ng-app/src/apps/AutomergeEditor.svelte b/ng-app/src/apps/AutomergeEditor.svelte
index b3a3790a..4f4653a1 100644
--- a/ng-app/src/apps/AutomergeEditor.svelte
+++ b/ng-app/src/apps/AutomergeEditor.svelte
@@ -38,6 +38,7 @@
export let readonly = false;
let doc = {};
+ let loading = true;
let safari_error = false;
@@ -87,6 +88,8 @@
root_proxy = d;
});
+ loading = false;
+
});
async function update(event) {
@@ -126,19 +129,47 @@
{#if safari_error}
{$t("connectivity.loading")}...
+{$t("doc.empty")}
{/if} diff --git a/ng-app/src/apps/ContainerView.svelte b/ng-app/src/apps/ContainerView.svelte index eea99d8d..ba0ca0e2 100644 --- a/ng-app/src/apps/ContainerView.svelte +++ b/ng-app/src/apps/ContainerView.svelte @@ -50,14 +50,14 @@ {#if commits.graph.length == 0 || contained(commits.graph).length == 0}{$t("doc.empty_container")}
{#if $cur_tab_doc_can_edit} - - {/if} + + {/if} {/if} \ No newline at end of file diff --git a/ng-app/src/apps/PostMdViewer.svelte b/ng-app/src/apps/PostMdViewer.svelte index 1342c12a..1a4f779a 100644 --- a/ng-app/src/apps/PostMdViewer.svelte +++ b/ng-app/src/apps/PostMdViewer.svelte @@ -53,6 +53,7 @@ let editor; let has_content = true; + let loading = true; async function setup() { try { @@ -120,9 +121,9 @@ Y.applyUpdate(ydoc, h.YXml, {local:true}) has_content = true; } + loading = false; } catch (e){ - console.log("in setup ") console.log(e) } } @@ -149,6 +150,7 @@ {#if !has_content} +{$t("connectivity.loading")}...
+{$t("connectivity.loading")}...
+{$t("connectivity.loading")}...
+{$t("connectivity.loading")}...
+{$t("connectivity.loading")}...
+{$t("connectivity.loading")}...
{$t("connectivity.loading")}...
+{$t("connectivity.loading")}...
+