changes naming to Submit, to avoid misunderstanding.
This commit is contained in:
+1
-2
@@ -8,7 +8,6 @@ angular.module("umbraco")
|
||||
vm.settings = $scope.model.settings;
|
||||
|
||||
vm.model = $scope.model;
|
||||
console.log("blockeditor model:", vm.model)
|
||||
|
||||
vm.tabs = [];
|
||||
|
||||
@@ -47,7 +46,7 @@ angular.module("umbraco")
|
||||
vm.tabs[0].active = true;
|
||||
}
|
||||
|
||||
vm.saveAndClose = function () {
|
||||
vm.submitAndClose = function () {
|
||||
if ($scope.model && $scope.model.submit) {
|
||||
$scope.model.submit($scope.model);
|
||||
}
|
||||
|
||||
+3
-3
@@ -42,10 +42,10 @@
|
||||
</umb-button>
|
||||
|
||||
<umb-button
|
||||
action="vm.saveAndClose()"
|
||||
action="vm.submitAndClose()"
|
||||
button-style="primary"
|
||||
state="saveAndCloseButtonState"
|
||||
label-key="buttons_saveAndClose"
|
||||
state="submitButtonState"
|
||||
label-key="buttons_submitChanges"
|
||||
type="button">
|
||||
</umb-button>
|
||||
|
||||
|
||||
@@ -152,6 +152,8 @@
|
||||
<key alias="confirmActionCancel">Fortryd</key>
|
||||
<key alias="confirmActionConfirm">Bekræft</key>
|
||||
<key alias="morePublishingOptions">Flere publiseringsmuligheder</key>
|
||||
<key alias="submitChanges">Indsæt</key>
|
||||
<key alias="submitChangesAndClose">Indsæt og luk</key>
|
||||
</area>
|
||||
<area alias="auditTrails">
|
||||
<key alias="atViewingFor">For</key>
|
||||
|
||||
@@ -155,6 +155,8 @@
|
||||
<key alias="confirmActionCancel">Cancel</key>
|
||||
<key alias="confirmActionConfirm">Confirm</key>
|
||||
<key alias="morePublishingOptions">More publishing options</key>
|
||||
<key alias="submitChanges">Submit</key>
|
||||
<key alias="submitChangesAndClose">Submit and close</key>
|
||||
</area>
|
||||
<area alias="auditTrails">
|
||||
<key alias="atViewingFor">Viewing for</key>
|
||||
|
||||
@@ -155,6 +155,8 @@
|
||||
<key alias="confirmActionCancel">Cancel</key>
|
||||
<key alias="confirmActionConfirm">Confirm</key>
|
||||
<key alias="morePublishingOptions">More publishing options</key>
|
||||
<key alias="submitChanges">Submit</key>
|
||||
<key alias="submitChangesAndClose">Submit and close</key>
|
||||
</area>
|
||||
<area alias="auditTrails">
|
||||
<key alias="atViewingFor">Viewing for</key>
|
||||
|
||||
Reference in New Issue
Block a user