add ellipsis to save button when it opens the variant overlay

This commit is contained in:
Mads Rasmussen
2018-10-01 13:39:14 +02:00
parent 22ad787c95
commit 6b08af666a
2 changed files with 3 additions and 1 deletions

View File

@@ -165,6 +165,8 @@
// create the save button
if(_.contains($scope.content.allowedActions, "A")) {
$scope.page.showSaveButton = true;
// add ellipsis to the save button if it opens the variant overlay
$scope.page.saveButtonEllipsis = content.variants && content.variants.length > 1 ? "true" : "false";
}
// create the pubish combo button

View File

@@ -55,7 +55,7 @@
action="save(content)"
label-key="buttons_save"
shortcut="ctrl+s"
add-ellipsis="content.variants && content.variants.length > 1 ? 'true' : 'false'">
add-ellipsis="{{page.saveButtonEllipsis}}">
</umb-button>
<umb-button-group