diff --git a/src/common/dialog/RevisionsDialog.svelte b/src/common/dialog/RevisionsDialog.svelte index 40169de74..13b75f21a 100644 --- a/src/common/dialog/RevisionsDialog.svelte +++ b/src/common/dialog/RevisionsDialog.svelte @@ -40,72 +40,80 @@ {:then user} -
-

{$_("dialogRevisionsDialog.heading")}

- -
+
+
+

{$_("dialogRevisionsDialog.heading")}

+ +
- {#if isPremiumOrg(user.organization)} -
- -
- {#if enabled} -
- - {#each sortedRevisions as revision} - - -
{revision.version} -

{revision.comment}

- + + + {#if enabled} +
+ + {#each sortedRevisions as revision} + + + + - - + {:else} + - - {:else} - - {/each} -
{revision.version} +

{revision.comment}

+ +
{$_("dialogRevisionsDialog.empty")}
{$_("dialogRevisionsDialog.empty")}
-
- {#if revisions.length > 0}

- {$_("dialogRevisionsDialog.total", { - values: { n: revisions.length }, - })} -

{/if} + {/each} +
+
+ {#if revisions.length > 0}

+ {$_("dialogRevisionsDialog.total", { + values: { n: revisions.length }, + })} +

{/if} + {/if} + {:else if isOrgAdmin(user)} + triggerPremiumUpgradeFlow(user?.organization)} + /> + {:else} + {/if} - {:else if isOrgAdmin(user)} - triggerPremiumUpgradeFlow(user?.organization)} - /> - {:else} - - {/if} +
{:catch} - +
+ +
{/await}