fix(trigger): show text

This commit is contained in:
yessenia
2025-10-20 10:34:48 +08:00
parent d5b228f234
commit fe0457b257
3 changed files with 33 additions and 17 deletions

View File

@ -114,13 +114,13 @@ export const OAuthClientSettingsModal = ({ oauthConfig, onClose, showOAuthCreate
onClose()
Toast.notify({
type: 'success',
message: t('pluginTrigger.modal.oauth.configuration.success'),
message: t('pluginTrigger.modal.oauth.remove.success'),
})
},
onError: (error: any) => {
Toast.notify({
type: 'error',
message: error?.message || t('pluginTrigger.modal.oauth.configuration.failed'),
message: error?.message || t('pluginTrigger.modal.oauth.remove.failed'),
})
},
})
@ -149,16 +149,16 @@ export const OAuthClientSettingsModal = ({ oauthConfig, onClose, showOAuthCreate
configureOAuth(params, {
onSuccess: () => {
if (needAuth)
if (needAuth) {
handleAuthorization()
else
}
else {
onClose()
},
onError: (error: any) => {
Toast.notify({
type: 'error',
message: error?.message || t('pluginTrigger.modal.oauth.configuration.failed'),
})
Toast.notify({
type: 'success',
message: t('pluginTrigger.modal.oauth.save.success'),
})
}
},
})
}