add back deploys on windows tag (#15372)

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
This commit is contained in:
momesgin 2025-09-08 14:25:50 -07:00 committed by GitHub
parent a38f37da46
commit 21efb164fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 16 additions and 4 deletions

View File

@ -11,10 +11,11 @@ import TabTitle from '@shell/components/TabTitle';
import { get } from '@shell/utils/object'; import { get } from '@shell/utils/object';
import { RcItemCard } from '@components/RcItemCard'; import { RcItemCard } from '@components/RcItemCard';
import AppChartCardSubHeader from '@shell/pages/c/_cluster/apps/charts/AppChartCardSubHeader'; import AppChartCardSubHeader from '@shell/pages/c/_cluster/apps/charts/AppChartCardSubHeader';
import AppChartCardFooter from '@shell/pages/c/_cluster/apps/charts/AppChartCardFooter';
export default { export default {
components: { components: {
Loading, IconMessage, TabTitle, RcItemCard, AppChartCardSubHeader Loading, IconMessage, TabTitle, RcItemCard, AppChartCardSubHeader, AppChartCardFooter
}, },
async fetch() { async fetch() {
@ -96,9 +97,14 @@ export default {
statuses: chart.cardContent.statuses statuses: chart.cardContent.statuses
}, },
subHeaderItems: chart.cardContent.subHeaderItems.slice(0, 1), subHeaderItems: chart.cardContent.subHeaderItems.slice(0, 1),
image: { src: chart.versions[0].icon, alt: { text: this.t('catalog.charts.iconAlt', { app: get(chart, 'chartNameDisplay') }) } }, footerItems: chart.deploysOnWindows ? [{
content: { text: chart.chartDescription }, icon: 'icon-tag-alt',
rawChart: chart, iconTooltip: { key: 'generic.tags' },
labels: [this.t('catalog.charts.deploysOnWindows')],
}] : [],
image: { src: chart.versions[0].icon, alt: { text: this.t('catalog.charts.iconAlt', { app: get(chart, 'chartNameDisplay') }) } },
content: { text: chart.chartDescription },
rawChart: chart,
installedApp, installedApp,
}; };
@ -203,6 +209,12 @@ export default {
> >
<AppChartCardSubHeader :items="card.subHeaderItems" /> <AppChartCardSubHeader :items="card.subHeaderItems" />
</template> </template>
<template
v-once
#item-card-footer
>
<AppChartCardFooter :items="card.footerItems" />
</template>
</rc-item-card> </rc-item-card>
</div> </div>
</div> </div>