import { escapeHtml } from '@/utils/string'; export default { deploymentInfo() { const ready = this.status?.summary?.ready || 0; const total = this.status?.summary?.desiredReady || 0; return { ready, unready: total - ready, total, }; }, groupByLabel() { const name = this.metadata.namespace; if ( name ) { return this.$rootGetters['i18n/t']('resourceTable.groupLabel.workspace', { name: escapeHtml(name) }); } else { return this.$rootGetters['i18n/t']('resourceTable.groupLabel.notInAWorkspace'); } }, };