diff --git a/web/src/InvitationEditPage.js b/web/src/InvitationEditPage.js index 66d9b7e8..30898a20 100644 --- a/web/src/InvitationEditPage.js +++ b/web/src/InvitationEditPage.js @@ -114,7 +114,7 @@ class InvitationEditPage extends React.Component { const selectedOrganization = Setting.getArrayItem(this.state.organizations, "name", this.state.invitation.owner); defaultApplication = selectedOrganization.defaultApplication; if (!defaultApplication) { - Setting.showMessage("error", i18next.t("invitation:You need to specify a default application for ") + selectedOrganization.name); + Setting.showMessage("error", i18next.t("invitation:You need to first specify a default application for organization: ") + selectedOrganization.name); return; } } diff --git a/web/src/ProviderEditPage.js b/web/src/ProviderEditPage.js index c74d8960..847cbe24 100644 --- a/web/src/ProviderEditPage.js +++ b/web/src/ProviderEditPage.js @@ -288,10 +288,8 @@ class ProviderEditPage extends React.Component { default: if (provider.type === "Aliyun Captcha") { return Setting.getLabel(i18next.t("provider:Scene"), i18next.t("provider:Scene - Tooltip")); - } else if (provider.type === "WeChat Pay") { + } else if (provider.type === "WeChat Pay" || provider.type === "CUCloud") { return Setting.getLabel(i18next.t("provider:App ID"), i18next.t("provider:App ID - Tooltip")); - } else if (provider.type === "CUCloud") { - return Setting.getLabel(i18next.t("provider:Account ID"), i18next.t("provider:Account ID - Tooltip")); } else { return Setting.getLabel(i18next.t("provider:Client ID 2"), i18next.t("provider:Client ID 2 - Tooltip")); } @@ -389,8 +387,8 @@ class ProviderEditPage extends React.Component { text = i18next.t("provider:App Key"); tooltip = i18next.t("provider:App Key - Tooltip"); } else if (provider.type === "CUCloud") { - text = i18next.t("provider:Topic name"); - tooltip = i18next.t("provider:Topic name - Tooltip"); + text = "Topic name"; + tooltip = "Topic name - Tooltip"; } } @@ -1283,7 +1281,7 @@ class ProviderEditPage extends React.Component { }} />