Issue #2473877 by Lendude, quietone, pefferen: Views UI progress indicator styled as pager and placed on strange location

(cherry picked from commit 46e744326c)
merge-requests/2505/head
catch 2022-07-13 15:10:02 +09:00
parent 4f3b578c27
commit 388393e860
2 changed files with 3 additions and 4 deletions

View File

@ -222,8 +222,8 @@ function views_ui_standard_display_dropdown(&$form, FormStateInterface $form_sta
// Add the "2 of 3" progress indicator.
if ($form_progress = $view->getFormProgress()) {
$form['progress']['#markup'] = '<div id="views-progress-indicator" class="views-progress-indicator">' . t('@current of @total', ['@current' => $form_progress['current'], '@total' => $form_progress['total']]) . '</div>';
$form['progress']['#weight'] = -1001;
$arguments = $form['#title']->getArguments() + ['@current' => $form_progress['current'], '@total' => $form_progress['total']];
$form['#title'] = t('Configure @type @current of @total: @item', $arguments);
}
// The dropdown should not be added when :

View File

@ -78,6 +78,7 @@ class ConfigHandler extends ViewsFormBase {
}
else {
$types = ViewExecutable::getHandlerTypes();
$form['#title'] = $this->t('Configure @type: @item', ['@type' => $types[$type]['lstitle'], '@item' => $handler->adminLabel()]);
// If this item can come from the default display, show a dropdown
// that lets the user choose which display the changes should apply to.
@ -150,8 +151,6 @@ class ConfigHandler extends ViewsFormBase {
];
}
$form['#title'] = $this->t('Configure @type: @item', ['@type' => $types[$type]['lstitle'], '@item' => $handler->adminLabel()]);
if (!empty($handler->definition['help'])) {
$form['options']['form_description'] = [
'#markup' => $handler->definition['help'],