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

Function buildMoveFolderSuccessToast

public/js/folderManager.js:132–142  ·  view source on GitHub ↗
(sourceFolder, destinationFolder)

Source from the content-addressed store, hash-verified

130}
131
132function buildMoveFolderSuccessToast(sourceFolder, destinationFolder) {
133 const movedName = movedFolderNameForToast(sourceFolder);
134 const sourceParent = normalizeFolderToastKey(getParentFolder(sourceFolder));
135 const destFolder = normalizeFolderToastKey(destinationFolder);
136 const destLabel = formatFolderPathForToast(destFolder);
137 if (sourceParent !== destFolder) {
138 const sourceLabel = formatFolderPathForToast(sourceParent);
139 return t('move_folder_success_named_from_to', { name: movedName, source: sourceLabel, folder: destLabel });
140 }
141 return t('move_folder_success_named_to', { name: movedName, folder: destLabel });
142}
143
144let __moveFolderSourcesCache = null;
145

Callers 2

handleDropOnFolderFunction · 0.70
folderManager.jsFile · 0.70

Calls 5

getParentFolderFunction · 0.85
tFunction · 0.85
movedFolderNameForToastFunction · 0.70
normalizeFolderToastKeyFunction · 0.70
formatFolderPathForToastFunction · 0.70

Tested by

no test coverage detected