Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions app/controllers/miq_task_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def index
# and :feature => "miq_task_all_ui"
@tabform ||= "tasks_1" if role_allows?(:feature => "miq_task_my_ui")
@tabform ||= "tasks_2" if role_allows?(:feature => "miq_task_all_ui")
tab_vars(@tabform.split("_")[1])
jobs
render :action => "jobs"
end
Expand All @@ -57,10 +58,16 @@ def show
def change_tab
assert_privileges('miq_task_all_ui', 'miq_task_my_ui', :any => false)
@tabform = "tasks_#{params[:'uib-tab']}"
tab_vars(params[:'uib-tab'])
jobs
render :action => "jobs"
end

def tab_vars(current_tab)
@path = '/miq_task/change_tab/'
@current_tab = current_tab.to_s
end

def build_jobs_tab
@pp_choices = PPCHOICES2 # Get special pp choices for jobs/tasks lists
@settings[:perpage][:job_task] ||= 50 # Default to 50 per page until changed
Expand Down