frontend: pending files view minor fixes (#634)

Fixes #598 #599
This commit is contained in:
ericlinagora
2024-07-25 17:39:13 +02:00
committed by GitHub
6 changed files with 7 additions and 6 deletions
+1
View File
@@ -266,6 +266,7 @@
"hooks.use-drive-actions.unable_update_file":"Unable to update this file.", "hooks.use-drive-actions.unable_update_file":"Unable to update this file.",
"general.resume": "Resume", "general.resume": "Resume",
"general.pause": "Pause", "general.pause": "Pause",
"general.paused": "Paused",
"app.state.recoil.hooks.use_current_company_applications.toaster_delete": "Successfully deleted {{$1}} from your company", "app.state.recoil.hooks.use_current_company_applications.toaster_delete": "Successfully deleted {{$1}} from your company",
"app.state.recoil.hooks.use_current_company_applications.toaster_add": "Successfully added {{$1}} in your company", "app.state.recoil.hooks.use_current_company_applications.toaster_add": "Successfully added {{$1}} in your company",
"scenes.join.loading": "Loading…", "scenes.join.loading": "Loading…",
+1
View File
@@ -242,6 +242,7 @@
"hooks.use-drive-actions.unable_update_file": "Impossible de mettre à jour ce fichier", "hooks.use-drive-actions.unable_update_file": "Impossible de mettre à jour ce fichier",
"general.resume": "Reprendre", "general.resume": "Reprendre",
"general.pause": "Pause", "general.pause": "Pause",
"general.paused": "En pause",
"app.state.recoil.hooks.use_current_company_applications.toaster_delete": "{{$1}} supprimé avec succès de votre entreprise", "app.state.recoil.hooks.use_current_company_applications.toaster_delete": "{{$1}} supprimé avec succès de votre entreprise",
"app.state.recoil.hooks.use_current_company_applications.toaster_add": "{{$1}} ajouté avec succès dans votre entreprise", "app.state.recoil.hooks.use_current_company_applications.toaster_add": "{{$1}} ajouté avec succès dans votre entreprise",
"scenes.app.popup.adduser.magiclinks.copied_to_clipboard": "Copié avec succès dans le presse-papiers", "scenes.app.popup.adduser.magiclinks.copied_to_clipboard": "Copié avec succès dans le presse-papiers",
+1
View File
@@ -242,6 +242,7 @@
"hooks.use-drive-actions.unable_update_file":"Unable to update this file.", "hooks.use-drive-actions.unable_update_file":"Unable to update this file.",
"general.resume": "Продолжить", "general.resume": "Продолжить",
"general.pause": "Пауза", "general.pause": "Пауза",
"general.paused": "Пауза",
"general.user.role.company.member": "Участник", "general.user.role.company.member": "Участник",
"components.locked_features.locked_guests_popup.skip_for_now_button": "Отложить", "components.locked_features.locked_guests_popup.skip_for_now_button": "Отложить",
"scenes.join.loading": "Загрузка…", "scenes.join.loading": "Загрузка…",
+1
View File
@@ -257,6 +257,7 @@
"hooks.use-drive-actions.unable_update_file": "Không thể cập nhật tệp này.", "hooks.use-drive-actions.unable_update_file": "Không thể cập nhật tệp này.",
"general.resume": "Tiếp tục", "general.resume": "Tiếp tục",
"general.pause": "Tạm dừng", "general.pause": "Tạm dừng",
"general.paused": "Đã tạm dừng",
"app.state.recoil.hooks.use_current_company_applications.toaster_delete": "Đã xóa thành công {{$1}} khỏi công ty của bạn", "app.state.recoil.hooks.use_current_company_applications.toaster_delete": "Đã xóa thành công {{$1}} khỏi công ty của bạn",
"app.state.recoil.hooks.use_current_company_applications.toaster_add": "Đã thêm thành công {{$1}} vào công ty của bạn", "app.state.recoil.hooks.use_current_company_applications.toaster_add": "Đã thêm thành công {{$1}} vào công ty của bạn",
"scenes.join.loading": "Đang tải…", "scenes.join.loading": "Đang tải…",
@@ -79,9 +79,8 @@ export default ({ pendingFileState, pendingFile }: PropsType) => {
{capitalize(pendingFile?.originalFile.name)} {capitalize(pendingFile?.originalFile.name)}
</Text> </Text>
{isPendingFileStatusPause(pendingFile.status) && ( {isPendingFileStatusPause(pendingFile.status) && (
<Text type="secondary" style={{ verticalAlign: 'middle', marginLeft: 4 }}> <Text type="secondary" className='ant-typography-single-line' style={{ verticalAlign: 'middle', marginLeft: 4 }}>
{/* TODO Add translation here */} ({Languages.t('general.paused')})
(paused)
</Text> </Text>
)} )}
</Row> </Row>
@@ -51,9 +51,7 @@ export default ({ pendingFilesState, visible }: PropsType) => {
return pendingFilesState.length > 0 ? ( return pendingFilesState.length > 0 ? (
<Layout className={'pending-files-list-layout ' + (visible ? 'visible' : '')}> <Layout className={'pending-files-list-layout ' + (visible ? 'visible' : '')}>
<Header <Header
className={classNames('pending-files-list-header', { className={classNames('pending-files-list-header')}
hidden: hiddenPendingFiles,
})}
onClick={() => setHiddenPendingFiles(!hiddenPendingFiles)} onClick={() => setHiddenPendingFiles(!hiddenPendingFiles)}
> >
<Row justify="space-between" align="middle"> <Row justify="space-between" align="middle">