diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-20 12:16:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-20 12:16:11 +0300 |
commit | edaa33dee2ff2f7ea3fac488d41558eb5f86d68c (patch) | |
tree | 11f143effbfeba52329fb7afbd05e6e2a3790241 /app/helpers/admin/background_migrations_helper.rb | |
parent | d8a5691316400a0f7ec4f83832698f1988eb27c1 (diff) |
Add latest changes from gitlab-org/gitlab@14-7-stable-eev14.7.0-rc42
Diffstat (limited to 'app/helpers/admin/background_migrations_helper.rb')
-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 |