Skip to content

Commit

Permalink
Fix last sonar bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lkleisa committed Dec 7, 2023
1 parent 3f4380c commit 628fcf5
Showing 1 changed file with 20 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,29 @@ export class ConfirmDialogComponent implements OnInit {
this.dialogTitle = 'Check-in im Draft-Status';
this.dialogText =
'Dein Objective befindet sich noch im DRAFT Status. Möchtest du das Check-in trotzdem erfassen?';
} else if (this.data.action) {
if (this.data.action === 'release') {
this.dialogTitle = this.data.title + ' veröffentlichen';
this.dialogText = 'Soll dieses ' + this.data.title + ' veröffentlicht werden?';
}
} else {
if (this.data.action) {
if (this.data.action === 'release') {
this.dialogTitle = this.data.title + ' veröffentlichen';
this.dialogText = 'Soll dieses ' + this.data.title + ' veröffentlicht werden?';
}
this.dialogTitle = this.data.title + ' löschen';
if (this.data.isAction) {
this.dialogText = 'Möchtest du diese Action wirklich löschen?';
} else {
this.dialogTitle = this.data.title + ' löschen';
if (this.data.isAction) {
this.dialogText = 'Möchtest du diese Action wirklich löschen?';
} else {
let error;
switch (this.data.title) {
case 'Team':
error = 'DELETE_TEAM';
break;
case 'Objective':
error = 'DELETE_OBJECTIVE';
break;
case 'Key Result':
error = 'DELETE_KEY_RESULT';
break;
}
this.dialogText = this.translate.instant('INFORMATION.' + error);
let error;
switch (this.data.title) {
case 'Team':
error = 'DELETE_TEAM';
break;
case 'Objective':
error = 'DELETE_OBJECTIVE';
break;
case 'Key Result':
error = 'DELETE_KEY_RESULT';
break;
}
this.dialogText = this.translate.instant('INFORMATION.' + error);
}
}
}
Expand Down

0 comments on commit 628fcf5

Please sign in to comment.