remove not very used vars

This commit is contained in:
Niels Lyngsø
2020-06-26 16:06:10 +02:00
parent cb98a4a82e
commit 0c7f8469d9
@@ -3,8 +3,7 @@ angular.module("umbraco")
function ($scope, localizationService, formHelper) {
var vm = this;
vm.content = $scope.model.content;
vm.settings = $scope.model.settings;
vm.model = $scope.model;
localizationService.localizeMany([
$scope.model.liveEditing ? "prompt_discardChanges" : "general_close",
@@ -14,13 +13,12 @@ angular.module("umbraco")
vm.submitLabel = data[1];
});
vm.model = $scope.model;
vm.tabs = [];
if (vm.content && vm.content.variants) {
if ($scope.model.content && $scope.model.content.variants) {
var apps = vm.content.apps;
var apps = $scope.model.content.apps;
vm.tabs = apps;
@@ -41,7 +39,7 @@ angular.module("umbraco")
}
if (vm.settings && vm.settings.variants) {
if ($scope.model.settings && $scope.model.settings.variants) {
localizationService.localize("blockEditor_tabBlockSettings").then(
function (settingsName) {
var settingsTab = {