File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ def index
39
39
# and :feature => "miq_task_all_ui"
40
40
@tabform ||= "tasks_1" if role_allows? ( :feature => "miq_task_my_ui" )
41
41
@tabform ||= "tasks_2" if role_allows? ( :feature => "miq_task_all_ui" )
42
+ tab_vars ( @tabform . split ( "_" ) [ 1 ] )
42
43
jobs
43
44
render :action => "jobs"
44
45
end
@@ -57,10 +58,16 @@ def show
57
58
def change_tab
58
59
assert_privileges ( 'miq_task_all_ui' , 'miq_task_my_ui' , :any => false )
59
60
@tabform = "tasks_#{ params [ :'uib-tab' ] } "
61
+ tab_vars ( params [ :'uib-tab' ] )
60
62
jobs
61
63
render :action => "jobs"
62
64
end
63
65
66
+ def tab_vars ( current_tab )
67
+ @path = '/miq_task/change_tab/'
68
+ @current_tab = current_tab . to_s
69
+ end
70
+
64
71
def build_jobs_tab
65
72
@pp_choices = PPCHOICES2 # Get special pp choices for jobs/tasks lists
66
73
@settings [ :perpage ] [ :job_task ] ||= 50 # Default to 50 per page until changed
You can’t perform that action at this time.
0 commit comments