Resync editors if content model changed (#13230)

This commit is contained in:
Niels Lyngsø
2022-10-18 12:47:08 +02:00
committed by GitHub
parent 5e96011140
commit af468b6f28
2 changed files with 3 additions and 1 deletions

View File

@@ -232,6 +232,7 @@
appendRuntimeData();
init();
startWatches($scope.content);
syncTreeNode($scope.content, $scope.content.path, true);
@@ -565,7 +566,6 @@
$scope.page.loading = true;
loadContent().then(function () {
startWatches($scope.content);
$scope.page.loading = false;
});
}

View File

@@ -64,6 +64,8 @@
setActiveVariant();
} else if (changes.segment && !changes.segment.isFirstChange() && changes.segment.currentValue !== changes.segment.previousValue) {
setActiveVariant();
} else if (changes.content) {
setActiveVariant();
}
}