mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 21:21:44 +00:00
Signed-off-by: Andy Lee <andy.lee@suse.com> (cherry picked from commit 2940f25fe0b805f1ffdb499becb916cdc7899eee) Co-authored-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
parent
dbb53eae00
commit
c84d262099
@ -59,10 +59,7 @@ export default {
|
|||||||
if (!pvcSchema?.collectionMethods.find((x) => x.toLowerCase() === 'post')) {
|
if (!pvcSchema?.collectionMethods.find((x) => x.toLowerCase() === 'post')) {
|
||||||
this.$store.dispatch('type-map/configureType', { match: HCI.VOLUME, isCreatable: false });
|
this.$store.dispatch('type-map/configureType', { match: HCI.VOLUME, isCreatable: false });
|
||||||
}
|
}
|
||||||
// we only show the non golden image PVCs in the list
|
this.rows = hash.pvcs;
|
||||||
const pvcs = hash.pvcs.filter((pvc) => pvc?.metadata?.annotations?.[HCI_ANNOTATIONS.GOLDEN_IMAGE] !== 'true');
|
|
||||||
|
|
||||||
this.rows = pvcs;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
@ -73,7 +70,10 @@ export default {
|
|||||||
schema() {
|
schema() {
|
||||||
return schema;
|
return schema;
|
||||||
},
|
},
|
||||||
|
filterRows() {
|
||||||
|
// we only show the non golden image PVCs in the list
|
||||||
|
return this.rows.filter((pvc) => pvc?.metadata?.annotations?.[HCI_ANNOTATIONS.GOLDEN_IMAGE] !== 'true');
|
||||||
|
},
|
||||||
headers() {
|
headers() {
|
||||||
return [
|
return [
|
||||||
STATE,
|
STATE,
|
||||||
@ -150,7 +150,7 @@ export default {
|
|||||||
:groupable="true"
|
:groupable="true"
|
||||||
default-sort-by="age"
|
default-sort-by="age"
|
||||||
:namespaced="true"
|
:namespaced="true"
|
||||||
:rows="rows"
|
:rows="filterRows"
|
||||||
:schema="schema"
|
:schema="schema"
|
||||||
key-field="_key"
|
key-field="_key"
|
||||||
>
|
>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user