Skip to content

Commit ffc2d4c

Browse files
committed
Fallback query added to task group when specific volume isnt knowable
1 parent f16fdc5 commit ffc2d4c

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

ui/.ember-cli

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
Setting `disableAnalytics` to true will prevent any data from being sent.
77
*/
88
"disableAnalytics": false,
9-
"proxy": "http://192.168.56.11:4646"
9+
"proxy": "http://127.0.0.1:4646"
1010
}

ui/app/templates/jobs/job/task-group.hbs

+11-6
Original file line numberDiff line numberDiff line change
@@ -293,12 +293,17 @@
293293
<tr data-test-volume>
294294
<td data-test-volume-name>
295295
{{#if row.model.isCSI}}
296-
<LinkTo
297-
@route="csi.volumes.volume"
298-
@model={{concat row.model.source "@" row.model.namespace.id}}
299-
>
300-
{{row.model.name}}
301-
</LinkTo>
296+
{{!-- if volume is per_alloc=true, there's no one specific volume. So, link to the volumes index with an active query --}}
297+
{{#if row.model.perAlloc}}
298+
<LinkTo @route="csi.volumes.index" @query={{hash search=row.model.source}}>{{row.model.name}}</LinkTo>
299+
{{else}}
300+
<LinkTo
301+
@route="csi.volumes.volume"
302+
@model={{concat row.model.source "@" row.model.namespace.id}}
303+
>
304+
{{row.model.name}}
305+
</LinkTo>
306+
{{/if}}
302307
{{else}}
303308
{{row.model.name}}
304309
{{/if}}

0 commit comments

Comments
 (0)