Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0613· OpenAIAi2 WildChat-4.8M (AI2)

const formatedActions = computed(() => { const { status } = props.group if (status ===…

  1. 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

  2. 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.