MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / renameStorage

Function renameStorage

src/pages/fileBrowser/fileBrowser.js:1144–1151  ·  view source on GitHub ↗
(newname)

Source from the content-addressed store, hash-verified

1142 }
1143
1144 function renameStorage(newname) {
1145 storageList = storageList.map((storage) => {
1146 if (storage.uuid === uuid) storage.name = newname;
1147 return storage;
1148 });
1149 localStorage.storageList = JSON.stringify(storageList);
1150 reload();
1151 }
1152
1153 function openDoc() {
1154 checkFiles.check = false;

Callers 1

contextMenuHandlerFunction · 0.85

Calls 1

reloadFunction · 0.70

Tested by

no test coverage detected