const formatedActions = computed(() => { const { status } = props.group if (status ===…
- User
const formatedActions = computed(() => { const { status } = props.group if (status === 'MIGRATING') { return [...actions, ...flowActions].filter((a) => a.text !== ('btns.delete')) } else if (status === 'CREATED' || status === 'PART CONFIGURED' || status === 'NOT VALID' || status === 'VALIDATED') { return [{ text: ('group.configSets'), func: configSets }, ...actions] } else if (status === 'CONFIGURED') { return [{ text: ('btns.migrate'), func: confirmMigrate }, ...actions] } else { return actions } }) поправить переводы vue composition api
- Assistant
const formatedActions = computed(() => { const { status } = props.group if (status === 'MIGRATING') { return [...actions, ...flowActions].filter((a) => a.text !== ('btns.delete')) } else if (status === 'CREATED' || status === 'PART CONFIGURED' || status === 'NOT VALID' || status === 'VALIDATED') { return [{ text: i18n.t('group.configSets'), func: configSets }, ...actions] } else if (status === 'CONFIGURED') { return [{ text: i18n.t('btns.migrate'), func: confirmMigrate }, ...actions] } else { return actions } })
Note: This assumes that the translation functionality is properly configured with Vue i18n and `i18n` is the instance of VueI18n used for translating the text.