directory list context menu

This commit is contained in:
2025-07-15 16:20:47 +02:00
parent 5631158b72
commit 672cfbee11
7 changed files with 64 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
import { toast } from 'vue-sonner';
import type { DirectoryEntry, FileType } from '~/types';
import type { DirectoryEntry } from '~/types';
import type { ApiResponse } from '~/types/api';
import type { Warren } from '~/types/warrens';
@@ -104,7 +104,8 @@ export async function createDirectory(
export async function deleteWarrenDirectory(
path: string,
directoryName: string
directoryName: string,
force: boolean
): Promise<{ success: boolean }> {
// eslint-disable-next-line prefer-const
let [warrenId, rest] = splitOnce(path, '/');
@@ -125,7 +126,7 @@ export async function deleteWarrenDirectory(
body: JSON.stringify({
warrenId,
path: rest,
force: false,
force,
}),
});