fix: optimize feedback and app icon (#1099)

This commit is contained in:
bowen
2023-09-05 09:13:59 +08:00
committed by GitHub
parent 7c66d3c793
commit 4a28599fbd
15 changed files with 45 additions and 37 deletions

View File

@@ -304,7 +304,7 @@ const Completed: FC<ICompletedProps> = ({
setAllSegments([...allSegments])
}
else {
notify({ type: 'error', message: t('common.actionMsg.modificationFailed') })
notify({ type: 'error', message: t('common.actionMsg.modifiedUnsuccessfully') })
}
}
@@ -315,7 +315,7 @@ const Completed: FC<ICompletedProps> = ({
resetList()
}
else {
notify({ type: 'error', message: t('common.actionMsg.modificationFailed') })
notify({ type: 'error', message: t('common.actionMsg.modifiedUnsuccessfully') })
}
}

View File

@@ -206,7 +206,7 @@ const EmbeddingDetail: FC<Props> = ({ detail, stopPosition = 'top', datasetId: d
setIndexingStatusDetail(null)
}
else {
notify({ type: 'error', message: t('common.actionMsg.modificationFailed') })
notify({ type: 'error', message: t('common.actionMsg.modifiedUnsuccessfully') })
}
}

View File

@@ -292,7 +292,7 @@ const Metadata: FC<IMetadataProps> = ({ docDetail, loading, onUpdate }) => {
if (!e)
notify({ type: 'success', message: t('common.actionMsg.modifiedSuccessfully') })
else
notify({ type: 'error', message: t('common.actionMsg.modificationFailed') })
notify({ type: 'error', message: t('common.actionMsg.modifiedUnsuccessfully') })
onUpdate?.()
setEditStatus(false)
setSaveLoading(false)

View File

@@ -150,7 +150,7 @@ export const OperationAction: FC<{
if (!e)
notify({ type: 'success', message: t('common.actionMsg.modifiedSuccessfully') })
else
notify({ type: 'error', message: t('common.actionMsg.modificationFailed') })
notify({ type: 'error', message: t('common.actionMsg.modifiedUnsuccessfully') })
onUpdate(operationName)
}

View File

@@ -70,7 +70,7 @@ const Form = ({
await mutateDatasets()
}
catch (e) {
notify({ type: 'error', message: t('common.actionMsg.modificationFailed') })
notify({ type: 'error', message: t('common.actionMsg.modifiedUnsuccessfully') })
}
finally {
setLoading(false)