some instead of find
This commit is contained in:
parent
ee6e3c6b2a
commit
efa924f3bf
@ -93,7 +93,7 @@ export class ReportsScreenComponent implements OnInit {
|
||||
|
||||
const dossierTemplateId = this._dossierTemplatesService.activeDossierTemplateId;
|
||||
|
||||
if (!!this.availableTemplates.find(template => template.fileName === file.name)) {
|
||||
if (this.availableTemplates.some(template => template.fileName === file.name)) {
|
||||
const data = new ConfirmationDialogInput({
|
||||
title: _('confirmation-dialog.report-template-same-name.title'),
|
||||
question: _('confirmation-dialog.report-template-same-name.question'),
|
||||
|
||||
@ -449,6 +449,12 @@
|
||||
"deny-text": "Uploads abbrechen",
|
||||
"question": "Wählen Sie bitte aus, ob <b>{fileName}</b> eine Berichtsvorlage für eine oder für mehrere Dateien ist",
|
||||
"title": "Upload der Berichtsvorlage"
|
||||
},
|
||||
"report-template-same-name": {
|
||||
"confirmation-text": "",
|
||||
"deny-text": "",
|
||||
"question": "<b>{fileName}</b>",
|
||||
"title": ""
|
||||
}
|
||||
},
|
||||
"content": "Begründung",
|
||||
|
||||
@ -456,7 +456,7 @@
|
||||
"title": "Report Template Upload"
|
||||
},
|
||||
"report-template-same-name": {
|
||||
"confirmation-text": "Yes. Continue upload.",
|
||||
"confirmation-text": "Yes. Continue upload",
|
||||
"deny-text": "No. Cancel Upload",
|
||||
"question": "There is already a Report Template with the name: <b>{fileName}</b>. Do you wish to continue?",
|
||||
"title": "Report Template Upload"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user