Skip to content

Commit afa6fa5

Browse files
Navya-SinhaaNavya Sinha
andauthored
attempted fix for Save and Preview button #15360 (#19138)
Co-authored-by: Navya Sinha <[email protected]>
1 parent 3c8a621 commit afa6fa5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Umbraco.Web.UI.Client/src/common/directives/components/content/edit.controller.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,9 +1033,12 @@
10331033
$scope.content.variants.forEach(variant => variant.save = false);
10341034
//ensure the save flag is set for the active variant
10351035
selectedVariant.save = true;
1036+
$scope.page.previewButtonState = "busy";
10361037
performSave({ saveMethod: $scope.saveMethod(), action: "save" }).then(function (data) {
1038+
$scope.page.previewButtonState = "success";
10371039
openPreviewWindow(url, urlTarget);
10381040
}, function (err) {
1041+
$scope.page.previewButtonState = "error";
10391042
//validation issues ....
10401043
});
10411044
}

0 commit comments

Comments
 (0)