#8345 - Nested content not remembering value on variant switch (#8479)

This commit is contained in:
rickread
2020-07-28 09:29:35 +01:00
committed by GitHub
parent 0aabc2f696
commit 61892882de

View File

@@ -98,6 +98,8 @@
vm.wideMode = Object.toBoolean(model.config.hideLabel);
vm.hasContentTypes = model.config.contentTypes.length > 0;
var cultureChanged = eventsService.on('editors.content.cultureChanged', (name, args) => updateModel());
var labels = {};
vm.labels = labels;
localizationService.localizeMany(["grid_addElement", "content_createEmpty", "actions_copy"]).then(function (data) {
@@ -696,6 +698,7 @@
$scope.$on("$destroy", function () {
unsubscribe();
cultureChanged();
watcher();
});