Commit 1c8fc593 authored by Ide Braakman's avatar Ide Braakman Committed by Fabian de Rijk
Browse files

Issue #3313855 by idebr, batigolix: Add actions wrapper to...

Issue #3313855 by idebr, batigolix: Add actions wrapper to FloodUnblockAdminForm for consistency with bulk actions
parent 92f0e935
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -212,14 +212,16 @@ class FloodUnblockAdminForm extends FormBase {
      '#empty' => $this->t('There are no failed logins at this time.'),
    ];

    $form['actions'] = ['#type' => 'actions'];

    // Provides the remove submit button.
    $form['remove'] = [
    $form['actions']['remove'] = [
      '#type' => 'submit',
      '#value' => $this->t('Remove selected items from the flood table'),
      '#validate' => ['::validateRemoveItems'],
    ];
    if (count($options) == 0) {
      $form['remove']['#disabled'] = TRUE;
      $form['actions']['remove']['#disabled'] = TRUE;
    }

    // Provides the pager element.