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

Commit 2fc8102

Browse files
committed
adds buttonstate to show spinner when submitting dialog.
1 parent a959014 commit 2fc8102

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-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
@@ -248,6 +248,7 @@ angular.module("umbraco").controller("Our.Umbraco.DocTypeGridEditor.Dialogs.DocT
248248
vm.close = close;
249249
vm.loading = true;
250250
vm.blueprintConfig = blueprintConfig;
251+
vm.saveButtonState = "init";
251252

252253
function cleanup() {
253254
if ($scope.model.node && $scope.model.node.id > 0) {
@@ -266,6 +267,7 @@ angular.module("umbraco").controller("Our.Umbraco.DocTypeGridEditor.Dialogs.DocT
266267

267268
function submit() {
268269
if ($scope.model.submit) {
270+
vm.saveButtonState = "busy";
269271
$scope.model.node.name = "Dtge Temp: " + $scope.model.node.key;
270272
$scope.model.node.variants[0].name = $scope.model.node.name
271273
$scope.model.node.variants[0].save = true;

src/Our.Umbraco.DocTypeGridEditor/Web/UI/App_Plugins/DocTypeGridEditor/Views/doctypegrideditor.dialog.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
</umb-button>
108108
<umb-button type="button"
109109
button-style="action"
110+
state="vm.saveButtonState"
110111
label-key="general_submit"
111112
shortcut="ctrl+s"
112113
ng-if="dialogMode == 'edit'"

0 commit comments

Comments
 (0)