Skip to content
This repository was archived by the owner on Feb 10, 2024. It is now read-only.

Commit 4ccb533

Browse files
authored
Merge pull request #4 from inetzo/fix-saveButtonState-1
Resetting saveButtonState when validation contains errors
2 parents c5fea69 + ded66ac commit 4ccb533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Our.Umbraco.DocTypeGridEditor/Web/UI/App_Plugins/DocTypeGridEditor/Js/doctypegrideditor.controllers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,11 @@ angular.module("umbraco").controller("Our.Umbraco.DocTypeGridEditor.Dialogs.DocT
293293
$routeParams.create = routeParamsCreate;
294294
},
295295
function (err) {
296-
vm.saveButtonState = "init";
297296
// Set original value of $routeParams.create
298297
$routeParams.create = routeParamsCreate;
299298
// cleanup the blueprint immediately
300299
cleanup();
300+
vm.saveButtonState = "init";
301301
});
302302
}
303303
}

0 commit comments

Comments
 (0)