From 3c58363e628fe960cfb0852a7b75752f74f814de Mon Sep 17 00:00:00 2001 From: Elizabeth Danzberger Date: Fri, 1 Mar 2024 16:18:12 -0500 Subject: [PATCH] refactored to use ImportResults component Signed-off-by: Elizabeth Danzberger --- src/modules/modals/Import.vue | 45 +++-------------------------------- 1 file changed, 3 insertions(+), 42 deletions(-) diff --git a/src/modules/modals/Import.vue b/src/modules/modals/Import.vue index 23b6f7da7..4aa5379c1 100644 --- a/src/modules/modals/Import.vue +++ b/src/modules/modals/Import.vue @@ -63,48 +63,7 @@
- -
- {{ t('tables', 'Found columns') }} -
-
- {{ result['found_columns_count'] }} -
-
- {{ t('tables', 'Matching columns') }} -
-
- {{ result['matching_columns_count'] }} -
-
- {{ t('tables', 'Created columns') }} -
-
- {{ result['created_columns_count'] }} -
-
- {{ t('tables', 'Inserted rows') }} -
-
- {{ result['inserted_rows_count'] }} -
-
- {{ t('tables', 'Value parsing errors') }} -
-
- {{ result['errors_parsing_count'] }} -
-
- {{ t('tables', 'Row creation errors') }} -
-
- {{ result['errors_count'] }} -
-
- - - {{ t('tables', 'Error during importing. Please read the logs for more information.') }} - +
@@ -141,6 +100,7 @@ import axios from '@nextcloud/axios' import { generateUrl } from '@nextcloud/router' import { mapGetters } from 'vuex' import NcIconTimerSand from '../../shared/components/ncIconTimerSand/NcIconTimerSand.vue' +import ImportResults from './ImportResults.vue' export default { @@ -150,6 +110,7 @@ export default { IconFolder, NcModal, NcButton, + ImportResults, NcCheckboxRadioSwitch, RowFormWrapper, NcEmptyContent,