Replace event dispatcher with a callback in filemanager
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import type { FSNavigator } from "./FSNavigator";
|
||||
import { fs_node_icon, fs_share_hotlink_url, fs_share_url, fs_update, node_is_shared, type FSNode, type FSPermissions } from "lib/FilesystemAPI";
|
||||
import { fs_node_icon, fs_share_hotlink_url, fs_share_url, fs_update, type FSNode, type FSPermissions } from "lib/FilesystemAPI.svelte";
|
||||
import { copy_text } from "util/Util";
|
||||
import CopyButton from "layout/CopyButton.svelte";
|
||||
import Dialog from "layout/Dialog.svelte";
|
||||
@@ -38,7 +38,7 @@ export const open = async (e: MouseEvent, p: FSNode[]) => {
|
||||
}
|
||||
|
||||
const make_public = async () => {
|
||||
if (!node_is_shared(base)) {
|
||||
if (!base.is_shared()) {
|
||||
base = await fs_update(
|
||||
base.path,
|
||||
{link_permissions: {read: true} as FSPermissions},
|
||||
|
||||
Reference in New Issue
Block a user