Fix issue when renaming a shared folder in the drive

pull/1/head
yflory 5 years ago
parent 96fcc852d6
commit 6e8ed7529f

@ -826,8 +826,9 @@ define([
if (!resolved.id) {
var el = Env.user.userObject.find(resolved.path);
if (Env.user.userObject.isSharedFolder(el) && Env.folders[el]) {
var oldName = Env.folders[el].proxy.metadata.title;
Env.folders[el].proxy.metadata.title = data.newName;
Env.user.proxy[UserObject.SHARED_FOLDERS][el].lastTitle = data.value;
Env.user.proxy[UserObject.SHARED_FOLDERS][el].lastTitle = oldName;
return void cb();
}
}

Loading…
Cancel
Save