diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-22 09:13:51 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-22 09:13:51 +0000 |
commit | 8bf2e2b73e5898c78dd057e02828b6acc1647a70 (patch) | |
tree | 803c73a15bf7ae4673310144d47ccb2b5918f9ff /app/helpers/admin | |
parent | 589ee0e419426e5b740c61b25a3fcfabd1d4c6a6 (diff) | |
download | gitlab-ce-8bf2e2b73e5898c78dd057e02828b6acc1647a70.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/admin')
-rw-r--r-- | app/helpers/admin/background_migrations_helper.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/helpers/admin/background_migrations_helper.rb b/app/helpers/admin/background_migrations_helper.rb index 698d81cc8a2..6516ea27b2c 100644 --- a/app/helpers/admin/background_migrations_helper.rb +++ b/app/helpers/admin/background_migrations_helper.rb @@ -2,15 +2,15 @@ module Admin module BackgroundMigrationsHelper - def batched_migration_status_badge_class_name(migration) - class_names = { - 'active' => 'badge-info', - 'paused' => 'badge-warning', - 'failed' => 'badge-danger', - 'finished' => 'badge-success' + def batched_migration_status_badge_variant(migration) + variants = { + 'active' => :info, + 'paused' => :warning, + 'failed' => :danger, + 'finished' => :success } - class_names[migration.status] + variants[migration.status] end # The extra logic here is needed because total_tuple_count is just |