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:
André 2022-01-26 20:17:29 +01:00 committed by GitHub
parent 2ebc512dfe
commit 518fc11dca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 10 deletions

3
.changelog/11896.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
ui: Fix the link target for CSI volumes on the task detail page
```

View File

@ -108,18 +108,18 @@
</t.head>
<t.body as |row|>
<tr data-test-volume>
<td data-test-volume-name>
{{#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-name>{{row.model.volume}}</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-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>
</t.body>
</ListTable>