MCPcopy Create free account
hub / github.com/error311/FileRise / buildMoveFolderSuccessToast

Function buildMoveFolderSuccessToast

public/js/fileDragDrop.js:41–51  ·  view source on GitHub ↗
(sourceFolder, destinationFolder)

Source from the content-addressed store, hash-verified

39}
40
41function buildMoveFolderSuccessToast(sourceFolder, destinationFolder) {
42 const movedName = movedFolderNameForToast(sourceFolder);
43 const sourceParent = normalizeFolderToastKey(parentFolderOf(sourceFolder));
44 const destFolder = normalizeFolderToastKey(destinationFolder);
45 const destLabel = formatFolderPathForToast(destFolder);
46 if (sourceParent !== destFolder) {
47 const sourceLabel = formatFolderPathForToast(sourceParent);
48 return t('move_folder_success_named_from_to', { name: movedName, source: sourceLabel, folder: destLabel });
49 }
50 return t('move_folder_success_named_to', { name: movedName, folder: destLabel });
51}
52
53function invalidateFolderStats(folders, sourceId = '') {
54 try {

Callers 1

folderDropHandlerFunction · 0.70

Calls 5

tFunction · 0.85
movedFolderNameForToastFunction · 0.70
normalizeFolderToastKeyFunction · 0.70
parentFolderOfFunction · 0.70
formatFolderPathForToastFunction · 0.70

Tested by

no test coverage detected