1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 13:55:21 +02:00

fix(stacks): check for editor change before setting as dirty

This commit is contained in:
Chaim Lev-Ari 2021-05-18 13:43:27 +03:00
parent 43702c2516
commit 87e7d8ada8

View file

@ -203,10 +203,9 @@ angular.module('portainer.app').controller('StackController', [
$scope.editorUpdate = function (cm) {
if ($scope.stackFileContent !== cm.getValue()) {
$scope.state.isEditorDirty = true;
$scope.stackFileContent = cm.getValue();
$scope.state.yamlError = StackHelper.validateYAML($scope.stackFileContent, $scope.containerNames);
}
$scope.stackFileContent = cm.getValue();
$scope.state.yamlError = StackHelper.validateYAML($scope.stackFileContent, $scope.containerNames);
$scope.state.isEditorDirty = true;
};
$scope.stopStack = stopStack;