Skip to content

Commit 51dfd59

Browse files
authored
Merge pull request #1234 from WildMeOrg/move_delete_button_to_danger_zone
move the delete button to a danger zone
2 parents 7a956bc + c54405f commit 51dfd59

File tree

6 files changed

+18
-5
lines changed

6 files changed

+18
-5
lines changed

frontend/src/locale/de.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,7 @@
525525
"BULK_IMPORT_TASK_ERROR_DEFAULT": "Ihre Aufgabe konnte aufgrund eines Fehlers nicht verarbeitet werden.",
526526
"FILTER_BULK_IMPORT_FILE_NAMES": "Dateinamen für den Massenimport",
527527
"BULK_IMPORT_SEND_TO_IDENTIFICATION": "Zur Identifizierung senden",
528-
"BULK_IMPORT_LOCATION_ID_DESC": "Je mehr Optionen Sie auswählen, desto länger dauert die Identifizierung. Seien Sie so präzise wie möglich."
528+
"BULK_IMPORT_LOCATION_ID_DESC": "Je mehr Optionen Sie auswählen, desto länger dauert die Identifizierung. Seien Sie so präzise wie möglich.",
529+
"DANGER_ZONE": "Gefahrenzone"
529530
}
530531

frontend/src/locale/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,5 +524,6 @@
524524
"BULK_IMPORT_TASK_ERROR_DEFAULT": "You task failed to process due to an error.",
525525
"FILTER_BULK_IMPORT_FILE_NAMES": "Bulk Import File Names",
526526
"BULK_IMPORT_SEND_TO_IDENTIFICATION": "Send to Identification",
527-
"BULK_IMPORT_LOCATION_ID_DESC": "The more options you select, the longer identification takes. Be as specific as possible."
527+
"BULK_IMPORT_LOCATION_ID_DESC": "The more options you select, the longer identification takes. Be as specific as possible.",
528+
"DANGER_ZONE": "Danger Zone"
528529
}

frontend/src/locale/es.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,5 +523,6 @@
523523
"BULK_IMPORT_TASK_ERROR_DEFAULT": "Su tarea no se pudo procesar debido a un error.",
524524
"FILTER_BULK_IMPORT_FILE_NAMES": "Nombres de archivos de importación masiva",
525525
"BULK_IMPORT_SEND_TO_IDENTIFICATION": "Enviar para identificación",
526-
"BULK_IMPORT_LOCATION_ID_DESC": "Cuantas más opciones seleccione, más tiempo tardará la identificación. Sea lo más específico posible."
526+
"BULK_IMPORT_LOCATION_ID_DESC": "Cuantas más opciones seleccione, más tiempo tardará la identificación. Sea lo más específico posible.",
527+
"DANGER_ZONE": "Zona de Peligro"
527528
}

frontend/src/locale/fr.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,5 +523,6 @@
523523
"BULK_IMPORT_TASK_ERROR_DEFAULT": "Votre tâche n'a pas pu être traitée en raison d'une erreur.",
524524
"FILTER_BULK_IMPORT_FILE_NAMES": "Noms de fichiers d'importation en masse",
525525
"BULK_IMPORT_SEND_TO_IDENTIFICATION": "Envoyer à l’identification",
526-
"BULK_IMPORT_LOCATION_ID_DESC": "Plus vous sélectionnez d’options, plus l’identification prendra du temps. Soyez aussi précis que possible."
526+
"BULK_IMPORT_LOCATION_ID_DESC": "Plus vous sélectionnez d’options, plus l’identification prendra du temps. Soyez aussi précis que possible.",
527+
"DANGER_ZONE": "Zone de danger"
527528
}

frontend/src/locale/it.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,5 +524,6 @@
524524
"BULK_IMPORT_TASK_ERROR_DEFAULT": "Impossibile elaborare la tua attività a causa di un errore.",
525525
"FILTER_BULK_IMPORT_FILE_NAMES": "Nomi dei file di importazione in blocco",
526526
"BULK_IMPORT_SEND_TO_IDENTIFICATION": "Invia per l’identificazione",
527-
"BULK_IMPORT_LOCATION_ID_DESC": "Più opzioni selezioni, più tempo richiederà l’identificazione. Sii il più specifico possibile."
527+
"BULK_IMPORT_LOCATION_ID_DESC": "Più opzioni selezioni, più tempo richiederà l’identificazione. Sii il più specifico possibile.",
528+
"DANGER_ZONE": "Zona pericolosa"
528529
}

frontend/src/pages/BulkImport/BulkImportTask.jsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,11 @@ const BulkImportTask = observer(() => {
500500
<FormattedMessage id="BULK_IMPORT_SEND_TO_IDENTIFICATION" />
501501
</MainButton>
502502
</Col>
503+
</Row>
504+
<Row>
505+
<h5 className="text-danger">
506+
<FormattedMessage id="DANGER_ZONE" />
507+
</h5>
503508
<Col xs="auto">
504509
<MainButton
505510
onClick={deleteTask}
@@ -511,6 +516,9 @@ const BulkImportTask = observer(() => {
511516
height: "40px",
512517
fontSize: "1rem",
513518
border: `1px solid ${theme.statusColors.red500}`,
519+
marginLeft: 0,
520+
marginTop: "1rem",
521+
marginBottom: "2rem",
514522
}}
515523
>
516524
<FormattedMessage id="BULK_IMPORT_DELETE_TASK" />

0 commit comments

Comments
 (0)