From 1536b8bd1b46fa1349d38ab8eb9775c9fee29052 Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Thu, 30 Jul 2026 23:13:55 +0200 Subject: [PATCH] Block sharing if subscription does not support it --- svelte/src/filesystem/ShareDialog.svelte | 35 +++++++++++++++++-- .../filesystem/edit_window/EditWindow.svelte | 9 ----- .../edit_window/SharingOptions.svelte | 12 +++++-- svelte/src/lib/FilesystemAPI.svelte.ts | 20 +++++++++++ 4 files changed, 63 insertions(+), 13 deletions(-) diff --git a/svelte/src/filesystem/ShareDialog.svelte b/svelte/src/filesystem/ShareDialog.svelte index ee0dc31..645e85d 100644 --- a/svelte/src/filesystem/ShareDialog.svelte +++ b/svelte/src/filesystem/ShareDialog.svelte @@ -1,10 +1,11 @@ + + +
+
+ Sharing is not allowed on free accounts. Upgrade to premium to + enable this feature +
+
+
+
{#if toast !== ""} diff --git a/svelte/src/filesystem/edit_window/EditWindow.svelte b/svelte/src/filesystem/edit_window/EditWindow.svelte index 19cf94b..1741da3 100644 --- a/svelte/src/filesystem/edit_window/EditWindow.svelte +++ b/svelte/src/filesystem/edit_window/EditWindow.svelte @@ -5,7 +5,6 @@ import BrandingOptions from "./BrandingOptions.svelte"; import { branding_from_props } from "./Branding"; import FileOptions from "./FileOptions.svelte"; import SharingOptions from "./SharingOptions.svelte"; -import AccessControl from "./AccessControl.svelte"; import type { FSNavigator } from "filesystem/FSNavigator"; import { loading_finish, loading_start } from "lib/Loading"; @@ -120,12 +119,6 @@ const save = async (e: SubmitEvent) => { share Sharing - {#if $nav.permissions.owner} - - {/if}