import { ContextMenuActionSet } from "../context-menu-action-set";
import { RenameIcon, DownloadIcon, RemoveIcon } from "../../../components/icon/icon";
-import { openRemoveDialog } from "../../remove-dialog/remove-dialog";
-import { openRenameDialog } from "../../rename-dialog/rename-dialog";
+import { openRenameFileDialog } from "../../rename-file-dialog/rename-file-dialog";
+import { openFileRemoveDialog } from "../../file-remove-dialog/file-remove-dialog";
export const collectionFilesItemActionSet: ContextMenuActionSet = [[{
name: "Rename",
icon: RenameIcon,
execute: (dispatch, resource) => {
- dispatch(openRenameDialog('the item'));
+ dispatch<any>(openRenameFileDialog(resource.name));
}
-},{
+}, {
name: "Download",
icon: DownloadIcon,
execute: (dispatch, resource) => {
return;
}
-},{
+}, {
name: "Remove",
icon: RemoveIcon,
execute: (dispatch, resource) => {
- dispatch(openRemoveDialog('selected file'));
+ dispatch(openFileRemoveDialog(resource.uuid));
}
}]];