Commit cee50071 authored by Bálint Csuthy's avatar Bálint Csuthy
Browse files

Issue #3253731 by Pasqualle: Allow delete action on changed config items

parent deb6665a
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -166,6 +166,10 @@ class ConfigUpdateController extends ControllerBase {
      'url' => Url::fromRoute('config.export_single', ['config_type' => $config_type, 'config_name' => $config_name]),
      'title' => $this->t('Export'),
    ];
    $links['delete'] = [
      'url' => Url::fromRoute('config_update_ui.delete', ['config_type' => $config_type, 'config_name' => $config_name]),
      'title' => $this->t('Delete'),
    ];
    $build['wrapper']['operations'] = [
      '#type' => 'dropbutton',
      '#links' => $links,
@@ -478,7 +482,7 @@ class ConfigUpdateController extends ControllerBase {
      '#caption' => $this->t('Changed configuration items'),
      '#empty' => $this->t('None: no active configuration items differ from their current provided versions.'),
    ] + $this->makeReportTable($different, 'active',
      ['diff', 'export', 'revert']);
      ['diff', 'export', 'revert', 'delete']);

    return $build;
  }