ui: move volume link to the source column and fix the link target (#11896)
The link target used the volume name instead of the volume id. Fixes issue #11884.
This commit is contained in:
parent
2ebc512dfe
commit
518fc11dca
|
@ -0,0 +1,3 @@
|
||||||
|
```release-note:bug
|
||||||
|
ui: Fix the link target for CSI volumes on the task detail page
|
||||||
|
```
|
|
@ -108,18 +108,18 @@
|
||||||
</t.head>
|
</t.head>
|
||||||
<t.body as |row|>
|
<t.body as |row|>
|
||||||
<tr data-test-volume>
|
<tr data-test-volume>
|
||||||
<td data-test-volume-name>
|
<td data-test-volume-name>{{row.model.volume}}</td>
|
||||||
{{#if row.model.isCSI}}
|
|
||||||
<LinkTo @route="csi.volumes.volume" @model={{row.model.volume}} @query={{hash volumeNamespace=row.model.namespace.id}}>
|
|
||||||
{{row.model.volume}}
|
|
||||||
</LinkTo>
|
|
||||||
{{else}}
|
|
||||||
{{row.model.volume}}
|
|
||||||
{{/if}}
|
|
||||||
</td>
|
|
||||||
<td data-test-volume-destination><code>{{row.model.destination}}</code></td>
|
<td data-test-volume-destination><code>{{row.model.destination}}</code></td>
|
||||||
<td data-test-volume-permissions>{{if row.model.readOnly "Read" "Read/Write"}}</td>
|
<td data-test-volume-permissions>{{if row.model.readOnly "Read" "Read/Write"}}</td>
|
||||||
<td data-test-volume-client-source>{{row.model.source}}</td>
|
<td data-test-volume-client-source>
|
||||||
|
{{#if row.model.isCSI}}
|
||||||
|
<LinkTo @route="csi.volumes.volume" @model={{row.model.source}} @query={{hash volumeNamespace=row.model.namespace.id}}>
|
||||||
|
{{row.model.source}}
|
||||||
|
</LinkTo>
|
||||||
|
{{else}}
|
||||||
|
{{row.model.source}}
|
||||||
|
{{/if}}
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</t.body>
|
</t.body>
|
||||||
</ListTable>
|
</ListTable>
|
||||||
|
|
Loading…
Reference in New Issue