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

Commit c5fea69

Browse files
authored
Reset saveButtonState when validation has errors
When the validation has errors, the saveButtonState should be reset to able to submit the form again.
1 parent 03523bd commit c5fea69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ angular.module("umbraco").controller("Our.Umbraco.DocTypeGridEditor.Dialogs.DocT
293293
$routeParams.create = routeParamsCreate;
294294
},
295295
function (err) {
296+
vm.saveButtonState = "init";
296297
// Set original value of $routeParams.create
297298
$routeParams.create = routeParamsCreate;
298299
// cleanup the blueprint immediately

0 commit comments

Comments
 (0)