Set @body_classes to admin layout (#9081)
This commit is contained in:
committed by
Eugen Rochko
parent
df3a7e724d
commit
e8ffecbd36
@ -4,6 +4,7 @@ class Settings::MigrationsController < ApplicationController
|
||||
layout 'admin'
|
||||
|
||||
before_action :authenticate_user!
|
||||
before_action :set_body_classes
|
||||
|
||||
def show
|
||||
@migration = Form::Migration.new(account: current_account.moved_to_account)
|
||||
@ -31,4 +32,8 @@ class Settings::MigrationsController < ApplicationController
|
||||
current_account.moved_to_account_id != @migration.account&.id &&
|
||||
current_account.id != @migration.account&.id
|
||||
end
|
||||
|
||||
def set_body_classes
|
||||
@body_classes = 'admin'
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user