Skip to content
Snippets Groups Projects
Commit 9c46104c authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3489463: Fix messing publishing status from the sticky action toolbar...

Issue #3489463: Fix messing publishing status from the sticky action toolbar after the Gin Admin theme 8.x-3.0-rc14 was released
parent 8de808d0
No related branches found
No related tags found
No related merge requests found
.gin-sticky-form-actions #edit-moderation-state-0 .form-element--type-select {
#edit-gin-sticky-actions #edit-moderation-state-0 .form-element--type-select {
width: 8rem;
}
.gin-sticky-form-actions #edit-moderation-state-0 .form-item--moderation-state-0-current {
#edit-gin-sticky-actions #edit-moderation-state-0 .form-item--moderation-state-0-current {
display: none;
}
.gin-sticky-form-actions #edit-moderation-state-0 .form-item--moderation-state-0-state label {
#edit-gin-sticky-actions #edit-moderation-state-0 .form-item--moderation-state-0-state label {
display: none;
}
.gin-sticky-form-actions #edit-moderation-state-wrapper {
order: -6;
}
.gin-sticky-form-actions #edit-preview {
#edit-gin-sticky-actions [data-gin-sticky-form-selector=edit-preview] {
order: -5;
}
.gin-sticky-form-actions #edit-submit {
#edit-gin-sticky-actions [data-gin-sticky-form-selector=edit-submit] {
order: -4;
}
.gin-sticky-form-actions {
#edit-gin-sticky-actions {
#edit-moderation-state-0 {
.form-element--type-select {
......@@ -15,16 +15,12 @@
}
}
}
#edit-moderation-state-wrapper {
order: -6;
}
#edit-preview {
[data-gin-sticky-form-selector="edit-preview"] {
order: -5;
}
#edit-submit {
[data-gin-sticky-form-selector="edit-submit"] {
order: -4;
}
}
......@@ -86,11 +86,8 @@ function varbase_workflow_form_alter(array &$form, FormStateInterface $form_stat
$base_themes = (array) $active_theme->getBaseThemeExtensions();
if ($active_theme->getName() === 'gin' || array_key_exists('gin', $base_themes)) {
// Set the group for moderation status to be in Gin Actions sticky header.
$form['moderation_state']['#group'] = 'gin_actions';
// Move moderation state dropdown to be a gin action item.
$form['moderation_state']['#gin_action_item'] = TRUE;
// Set the group for moderation status to be in Gin Actions sticky status.
$form['moderation_state']['#group'] = 'status';
// Change the title of the submit button.
$form['actions']['submit']['#value'] = t('Save as');
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment