File tree Expand file tree Collapse file tree 2 files changed +26
-3
lines changed Expand file tree Collapse file tree 2 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,21 @@ const routes = [
82
82
component : TemplateTerraformState ,
83
83
} ] ,
84
84
} ,
85
+ {
86
+ path : '/project/:projectId/views/:viewId/templates/:templateId' ,
87
+ redirect : '/project/:projectId/views/:viewId/templates/:templateId/tasks' ,
88
+ component : TemplateView ,
89
+ children : [ {
90
+ path : 'tasks' ,
91
+ component : TaskList ,
92
+ } , {
93
+ path : 'details' ,
94
+ component : TemplateDetails ,
95
+ } , {
96
+ path : 'state' ,
97
+ component : TemplateTerraformState ,
98
+ } ] ,
99
+ } ,
85
100
{
86
101
path : '/project/:projectId/environment' ,
87
102
component : Environment ,
Original file line number Diff line number Diff line change 80
80
</v-toolbar >
81
81
82
82
<v-tabs class =" mb-4 ml-4" >
83
- <v-tab :to =" `/project/${item.project_id}/templates/${item.id}/tasks`" >Tasks</v-tab >
84
- <v-tab :to =" `/project/${item.project_id}/templates/${item.id}/details`" >Details</v-tab >
83
+ <v-tab
84
+ :to =" `/project/${item.project_id}${
85
+ $route.params.viewId ? `/views/${$route.params.viewId}` : ''
86
+ }/templates/${item.id}/tasks`" >Tasks</v-tab >
87
+ <v-tab
88
+ :to =" `/project/${item.project_id}${
89
+ $route.params.viewId ? `/views/${$route.params.viewId}` : ''
90
+ }/templates/${item.id}/details`" >Details</v-tab >
85
91
<v-tab
86
92
v-if =" ['terraform', 'tofu'].includes(item.app)"
87
- :to =" `/project/${item.project_id}/templates/${item.id}/state`"
93
+ :to =" `/project/${item.project_id}${
94
+ $route.params.viewId ? `/views/${$route.params.viewId}` : ''
95
+ }/templates/${item.id}/state`"
88
96
>
89
97
State
90
98
<v-icon class =" ml-1" large color =" hsl(348deg, 86%, 61%)" >mdi-professional-hexagon</v-icon >
You can’t perform that action at this time.
0 commit comments