From c2328b8b456b8bc31573009299bd2aa8cd30e668 Mon Sep 17 00:00:00 2001 From: Danilo Jeremias da Silva Date: Wed, 1 Nov 2023 01:16:23 -0300 Subject: [PATCH] Better pause button (#6) * Better pause button * Changelog --- CHANGELOG.md | 10 +++++++--- Gemfile.lock | 2 +- lib/sidekiq/belt/ent/periodic_pause.rb | 16 ++++++++++++++-- lib/sidekiq/belt/version.rb | 2 +- 4 files changed, 23 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3620b1d..f9c4008 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,13 +1,17 @@ ## [Unreleased] -## [0.3.0] - 2023-10-07 +## [0.3.1] - 2023-11-01 + +- Added style to pause button + +## [0.3.0] - 2023-10-28 - Feature to add button to remove failed batches -## [0.2.0] - 2023-10-07 +## [0.2.0] - 2023-10-14 - Feature to Pause/Unpause Periodic Jobs -## [0.1.0] - 2023-10-07 +## [0.1.0] - 2023-10-12 - Feature to run manualy Periodic Jobs diff --git a/Gemfile.lock b/Gemfile.lock index fd72c1d..89e96f8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - sidekiq-belt (0.3.0) + sidekiq-belt (0.3.1) sidekiq (> 7.1.4) GEM diff --git a/lib/sidekiq/belt/ent/periodic_pause.rb b/lib/sidekiq/belt/ent/periodic_pause.rb index 454302c..dae9a27 100644 --- a/lib/sidekiq/belt/ent/periodic_pause.rb +++ b/lib/sidekiq/belt/ent/periodic_pause.rb @@ -22,7 +22,7 @@ module SidekiqLoopsPeriodicPause PAUSE_BUTTON = <<~ERB
<%= csrf_tag %> -
ERB @@ -30,13 +30,25 @@ module SidekiqLoopsPeriodicPause UNPAUSE_BUTTON = <<~ERB
<%= csrf_tag %> -
ERB def self.registered(app) app.replace_content("/loops") do |content| + content.gsub!("", " + ") + # Add the top of the table content.gsub!("\n ", "<%= t('Pause/Unpause') %>\n ") diff --git a/lib/sidekiq/belt/version.rb b/lib/sidekiq/belt/version.rb index a3e2213..07c27ba 100644 --- a/lib/sidekiq/belt/version.rb +++ b/lib/sidekiq/belt/version.rb @@ -2,6 +2,6 @@ module Sidekiq module Belt - VERSION = "0.3.0" + VERSION = "0.3.1" end end