Enforce the "Save and preview" button after when switching content app (#17985)

This commit is contained in:
Kenn Jacobsen
2025-01-15 09:55:00 +01:00
committed by GitHub
parent ee727c43e1
commit 4dd8fbe25d

View File

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