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

Commit 54c8d5a

Browse files
authored
Merge pull request #228 from skartknet/patch-1
Added saved node id to node model
2 parents 383dda8 + 0b09648 commit 54c8d5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ angular.module("umbraco").controller("Our.Umbraco.DocTypeGridEditor.Dialogs.DocT
288288
}
289289

290290
contentEditingHelper.contentEditorPerformSave(args).then(function (data) {
291+
$scope.model.node.id = data.id;
291292
$scope.model.submit($scope.model);
292293
// Reset original value of $routeParams.create
293294
$routeParams.create = routeParamsCreate;
@@ -296,6 +297,7 @@ angular.module("umbraco").controller("Our.Umbraco.DocTypeGridEditor.Dialogs.DocT
296297
// Set original value of $routeParams.create
297298
$routeParams.create = routeParamsCreate;
298299
// cleanup the blueprint immediately
300+
$scope.model.node.id = err.data.id;
299301
cleanup();
300302
vm.saveButtonState = "error";
301303
});

0 commit comments

Comments
 (0)