Fix navigation switching to user “Account” category when viewing appeal for moderation interface (#39476)
This commit is contained in:
1 parent
b5b9cb7043
commit
83f559ee9f
5 files changed
+9
-3
No files matched your search
@@ -0,0 +1,4 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class Admin::Disputes::StrikesController < Disputes::StrikesController
|
||||
end
|
||||
@@ -8,7 +8,7 @@ class Disputes::AppealsController < Disputes::BaseController
|
||||
|
||||
@appeal = AppealService.new.call(@strike, appeal_params[:text])
|
||||
|
||||
redirect_to disputes_strike_path(@strike), notice: I18n.t('disputes.strikes.appealed_msg')
|
||||
redirect_to admin_disputes_strike_path(@strike), notice: I18n.t('disputes.strikes.appealed_msg')
|
||||
rescue ActiveRecord::RecordInvalid => e
|
||||
@appeal = e.record
|
||||
render 'disputes/strikes/show'
|
||||
|
||||
Reference in new issue
Block a user