diff --git a/web/app/components/plugins/reference-setting-modal/auto-update-setting/index.tsx b/web/app/components/plugins/reference-setting-modal/auto-update-setting/index.tsx index 66eb136913..03f1ec8d2e 100644 --- a/web/app/components/plugins/reference-setting-modal/auto-update-setting/index.tsx +++ b/web/app/components/plugins/reference-setting-modal/auto-update-setting/index.tsx @@ -1,13 +1,14 @@ 'use client' import type { FC } from 'react' import React, { useCallback, useMemo } from 'react' -import { AUTO_UPDATE_STRATEGY, type AutoUpdateConfig } from './types' +import { AUTO_UPDATE_MODE, AUTO_UPDATE_STRATEGY, type AutoUpdateConfig } from './types' import Label from '../label' import StrategyPicker from './strategy-picker' import { useTranslation } from 'react-i18next' import TimePicker from '@/app/components/base/date-and-time-picker/time-picker' import type { Dayjs } from 'dayjs' import dayjs from 'dayjs' +import OptionCard from '@/app/components/workflow/nodes/_base/components/option-card' const i18nPrefix = 'plugin.autoUpdate' @@ -33,7 +34,11 @@ const AutoUpdateSetting: FC = ({ onChange, }) => { const { t } = useTranslation() - const { strategy_setting, upgrade_time_of_day } = payload + const { + strategy_setting, + upgrade_time_of_day, + upgrade_mode, + } = payload const strategyDescription = useMemo(() => { switch (strategy_setting) { case AUTO_UPDATE_STRATEGY.fixOnly: @@ -76,8 +81,19 @@ const AutoUpdateSetting: FC = ({ title={t(`${i18nPrefix}.updateTime`)} /> -
+
)} diff --git a/web/i18n/en-US/plugin.ts b/web/i18n/en-US/plugin.ts index 951595765b..4cdfde7e67 100644 --- a/web/i18n/en-US/plugin.ts +++ b/web/i18n/en-US/plugin.ts @@ -134,6 +134,11 @@ const translation = { }, }, updateTimeTitle: 'Update time', + upgradeMode: { + update_all: 'Update all', + exclude: 'Exclude selected', + partial: 'Only selected', + }, }, pluginInfoModal: { title: 'Plugin info', diff --git a/web/i18n/zh-Hans/plugin.ts b/web/i18n/zh-Hans/plugin.ts index 8529bb3044..091e66648a 100644 --- a/web/i18n/zh-Hans/plugin.ts +++ b/web/i18n/zh-Hans/plugin.ts @@ -134,6 +134,11 @@ const translation = { }, }, updateTimeTitle: '更新时间', + upgradeMode: { + update_all: '更新全部', + exclude: '排除选定', + partial: '仅选定', + }, }, pluginInfoModal: { title: '插件信息',