directory list context menu
This commit is contained in:
@@ -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,
|
||||
}),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user