fix(workspace): menu contextuel après navigation partielle + sync sidebar/header au rename
This commit is contained in:
@@ -1519,6 +1519,20 @@ window._wsInitData = (function() {
|
||||
if (r.ok) {
|
||||
node.name = n; node.db_name = n;
|
||||
this._saveExpandedState();
|
||||
if (window.appState && window.appState.refreshSidebarTree) window.appState.refreshSidebarTree();
|
||||
if (window.FlowDeck && window.FlowDeck.syncPageTitle) window.FlowDeck.syncPageTitle(node.id, n);
|
||||
var self = this;
|
||||
if (this.folderStack && this.folderStack.length) {
|
||||
this.folderStack.forEach(function(f) { if (String(f.id) === String(node.id)) f.name = n; });
|
||||
}
|
||||
if (this.breadcrumb && this.breadcrumb.length) {
|
||||
this.breadcrumb.forEach(function(b) { if (String(b.id) === String(node.id)) b.name = n; });
|
||||
}
|
||||
if (this.previewItem && String(this.previewItem.id) === String(node.id)) {
|
||||
this.previewItem.name = n;
|
||||
var pt = document.getElementById('ws-preview-title');
|
||||
if (pt) pt.textContent = n;
|
||||
}
|
||||
}
|
||||
},
|
||||
cancelRename() { this.renamingId = null; },
|
||||
|
||||
Reference in New Issue
Block a user