Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-01-20 12:16:11 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-01-20 12:16:11 +0300
commitedaa33dee2ff2f7ea3fac488d41558eb5f86d68c (patch)
tree11f143effbfeba52329fb7afbd05e6e2a3790241 /app/helpers/admin/background_migrations_helper.rb
parentd8a5691316400a0f7ec4f83832698f1988eb27c1 (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.rb14
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