Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Groupbranch forgottensemicolon #277

Open
wants to merge 101 commits into
base: BSAPP-930
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
3efbc19
de.json und en.json Fehlermeldung Veranstaltung eingefügt
ValerieSchneider Jun 3, 2021
518eccb
fixed problem with invalid Rückennummer inputs which showed another p…
Patrick762 Jun 9, 2021
5334adc
fixed conflicts
Patrick762 Jun 10, 2021
675c5a8
Merge branch 'develop' into BSAPP-814
Patrick762 Jun 14, 2021
2de4a7e
onDeleteMannschaften implemented to delete Mannschaften in Veranstalt…
kayaok Jun 21, 2021
5805d8a
Merge branch 'develop' into BSAPP-683/686
ValerieSchneider Jun 21, 2021
d9e13a5
Change Lösch-Dialog from id to name.
lisa-tochtermann Jun 21, 2021
d8e0b98
Merge pull request #266 from exxcellent/BSAPP-947
jschaenz Jun 21, 2021
3aa9d44
Bug fix BSAPP-939 und 940
Shohan-creator Jun 22, 2021
609f780
Merge branch 'develop' into BSAPP-898-1
Till-G Jun 23, 2021
24a203c
derzeitige Liga aus Auswahl der übergeordneten Liga entfernt
Jun 24, 2021
4e6871d
Merge pull request #269 from exxcellent/BSAPP-793
jschaenz Jun 24, 2021
4c1dab5
Merge pull request #265 from exxcellent/BSAPP-683/686
ValerieSchneider Jun 24, 2021
94f250a
Merge branch 'develop' into T2D
jschaenz Jun 24, 2021
e552ff4
BSAPP-932
Sherna99 Jun 25, 2021
71edee2
Merge branch 'develop' into BSAPP-932
Till-G Jun 25, 2021
dabfc8e
Merge pull request #270 from exxcellent/BSAPP-932
Till-G Jun 25, 2021
a0b1dea
Merge branch 'develop' into BSAPP-898-1
Till-G Jun 25, 2021
26d9ec6
Merge pull request #268 from exxcellent/BSAPP-898-1
Till-G Jun 25, 2021
fafbd46
bugfix correction
Sherna99 Jun 25, 2021
ca7541e
Cleaned Veranstaltung-detail.component.ts
carawendt Jun 26, 2021
6f5551e
Change Lösch-Dialog from id to name.
lisa-tochtermann Jun 21, 2021
7b3a1a4
derzeitige Liga aus Auswahl der übergeordneten Liga entfernt
Jun 24, 2021
984be08
Merge remote-tracking branch 'origin/T2D' into T2D
lisa-tochtermann Jul 1, 2021
2cae78d
fix Schuetze Import
Jul 1, 2021
2565eaa
Merge pull request #267 from exxcellent/T2D
Energiner Jul 1, 2021
f127258
Wettkampftag löschen
IremB Jul 1, 2021
c16e0f4
Added copy button
Till-G Jul 1, 2021
cc99a46
Added 'Kopieren' for Wettkampftage to .json
Till-G Jul 1, 2021
584d52d
Function updateNumbersDelete
Shohan-creator Jul 1, 2021
2aa535f
Wettkampftage löschen
IremB Jul 1, 2021
ff5a9f8
changes on updateNumbersDelete
Shohan-creator Jul 1, 2021
25910bd
first try with deadline
IremB Jul 1, 2021
f1bd2b9
Finished Wettkampftag löschen
IremB Jul 1, 2021
7fcdd8a
searching for error
Shohan-creator Jul 1, 2021
65ad094
Löschen-Button nach links verschoben
IremB Jul 1, 2021
d0e1a07
ticket fix und verbesserte Form control in Wettkampftage
Sherna99 Jul 1, 2021
d41df1c
Merge branch 'develop' into BSAPP-932
Sherna99 Jul 1, 2021
8249597
Merge branch 'develop' into BSAPP-901
Sherna99 Jul 1, 2021
fbd76be
Merge pull request #272 from exxcellent/BSAPP-932
Sherna99 Jul 2, 2021
eee05bc
Merge branch 'develop' into BSAPP-901
kayaok Jul 2, 2021
2dd0824
Merge pull request #271 from exxcellent/BSAPP-901
kayaok Jul 2, 2021
3d0d87d
add extended Kampfrichter Files
Jul 2, 2021
0784f2b
kampfrichter auswahl hinzugefügt
janar96 Jul 2, 2021
0474f8e
Merge branch 'develop' into T2D
jschaenz Jul 2, 2021
7c8aa00
changed logic for loading Kampfrichter
Energiner Jul 2, 2021
833b15c
Backendaufruf hinzugefügt
muelleyv Jul 2, 2021
0e7ed1a
add combined vor+nachname to KampfrichterDTO
Jul 2, 2021
d29decd
fix KampfrichterExtendedDO Import
Jul 2, 2021
2e0c072
change Kampfrichterprovider from currentWettkampftag to selectedWettk…
Jul 2, 2021
c7fd509
added delete&save functionality for Kampfrichter
Jul 2, 2021
352d638
imput pattern changed in two files
Sherna99 Jul 2, 2021
1dc69ac
changed notification
IremB Jul 2, 2021
ebffc90
changed syntax
IremB Jul 2, 2021
5f8e3c9
fix Kampfrichter formatting
Jul 3, 2021
c6fd81d
Merge pull request #273 from exxcellent/T2D
MaxWeise Jul 3, 2021
8e39a3c
Erste Änderungen
carawendt Jul 3, 2021
0ce80dc
added comments
carawendt Jul 3, 2021
b5aaf00
Altered frontend classes to include regex
Lena-Ger Jul 4, 2021
005585e
frontend now uses regex from database to check configuration values
Patrick762 Jul 4, 2021
1621fe6
added default popup message for invalid configuration values
Patrick762 Jul 4, 2021
3365409
Merge branch 'develop' into BSAPP-814
Patrick762 Jul 4, 2021
d9a7dd9
Merge pull request #263 from exxcellent/BSAPP-814
Patrick762 Jul 4, 2021
04659fb
Merge branch 'develop' into BSAPP-931
Patrick762 Jul 4, 2021
434a9ce
Merge branch 'develop' into BSAPP-919
carawendt Jul 4, 2021
8dbe643
Merge pull request #275 from exxcellent/BSAPP-931
Patrick762 Jul 4, 2021
bb0475d
Merge branch 'develop' into BSAPP-919
carawendt Jul 4, 2021
9d3c87e
Merge pull request #276 from exxcellent/develop
TobiasBraunHSR Jul 4, 2021
ce11bf4
Merge branch 'develop' into BSAPP-941
IremB Jul 4, 2021
cb3d03c
Merge pull request #278 from exxcellent/BSAPP-941
IremB Jul 4, 2021
32e9dad
set time of dates to zero
IremB Jul 5, 2021
6f265d9
Added button to copy Wettkampftage
Till-G Jul 5, 2021
058c908
Merge branch 'develop' into BSAPP-941
IremB Jul 5, 2021
6c0d888
auto formatted code
Till-G Jul 5, 2021
54946e1
changed default date
Till-G Jul 5, 2021
4dbd2c2
Merge pull request #279 from exxcellent/BSAPP-941
IremB Jul 5, 2021
e115b2a
Merge branch 'develop' into BSAPP-952
Till-G Jul 5, 2021
8e50da5
fixed merge conflict
Till-G Jul 5, 2021
72a677f
Merge pull request #281 from exxcellent/BSAPP-952
Till-G Jul 5, 2021
8a4b2df
Merge branch 'develop' into BSAPP-919
Till-G Jul 5, 2021
1d53c76
Merge pull request #274 from exxcellent/BSAPP-919
Till-G Jul 5, 2021
fec9f9a
input pattern changes
Sherna99 Jul 5, 2021
4701923
Update README.md
Till-G Jul 5, 2021
e839924
quick fix and clean up
Sherna99 Jul 5, 2021
1389e2b
Merge branch 'develop' into BSAPP-963
Sherna99 Jul 5, 2021
613f3a3
Bugfix: Wettkampftage falsch abgespeichert, Bugfix: UpdateNummerierung
Shohan-creator Jul 5, 2021
6e1005f
Merge pull request #282 from exxcellent/README-patch
Till-G Jul 5, 2021
3faf19c
small bugfix
Shohan-creator Jul 5, 2021
c49ed9b
Merge branch 'develop' into BSAPP-963
Till-G Jul 5, 2021
70f9e3e
Merge pull request #286 from exxcellent/BSAPP-930
Alexander-Nuding Jul 5, 2021
7f948b9
Merge branch 'develop' into groupbranch_forgottensemicolon
Alexander-Nuding Jul 5, 2021
e632388
Merge branch 'develop' into BSAPP-941-2
Till-G Jul 5, 2021
687545f
Merge pull request #283 from exxcellent/BSAPP-963
Sherna99 Jul 5, 2021
13879f4
Merge branch 'develop' into groupbranch_forgottensemicolon
Alexander-Nuding Jul 5, 2021
bd2f53d
Merge branch 'develop' into BSAPP-941-2
Till-G Jul 5, 2021
b9c2ada
Merge pull request #285 from exxcellent/BSAPP-941-2
Till-G Jul 5, 2021
1e01df2
Merge branch 'develop' into groupbranch_forgottensemicolon
Alexander-Nuding Jul 5, 2021
11e4e2b
Merge pull request #287 from exxcellent/groupbranch_forgottensemicolon
Alexander-Nuding Jul 5, 2021
7451a2f
Merge pull request #289 from exxcellent/develop
TobiasBraunHSR Jul 7, 2021
01e2d4d
BSAPP-957
TobiasSeidel86 Jul 7, 2021
c84c0bf
Merge pull request #290 from exxcellent/BSAPP-957_neu
TobiasSeidel86 Jul 7, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SWT2 - Bogenliga Application - Angular Oberfläche

Ein Beispiel ist unter [GitHub Demo Seite](https://exxcellent.github.io/swt2-bsa-frontend/) verfügbar.

## Einstiegg
## Einstieg

Zum Starten der Anwendung führe folgede Befehle aus:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,45 +211,42 @@ export class SchusszettelComponent implements OnInit {
this.dirtyFlag = true; // Daten geändert
}

onSchuetzeChange(value: string, matchNr: number, rueckennummer: number){
var mannschaftId = matchNr == 1 ? this.match1.mannschaftId : this.match2.mannschaftId;
async onSchuetzeChange(value: string, matchNr: number, rueckennummer: number){
const mannschaftId = matchNr == 1 ? this.match1.mannschaftId : this.match2.mannschaftId;

this.mannschaftsMitgliedDataProvider.findByTeamIdAndRueckennummer(mannschaftId, value).then(result => {
if(result.result == RequestResult.SUCCESS){
console.log(result.payload.dsbMitgliedId);
let valid = true;
let allowed = [];
let mitglied = null;

let dsbNummer = result.payload.dsbMitgliedId;
let allowed = [];
try {
mitglied = await this.mannschaftsMitgliedDataProvider.findByTeamIdAndRueckennummer(mannschaftId, value);
}catch (e){
valid = false;
}

if(matchNr == 1){
allowed = this.allowedMitglieder1;
}
else{
allowed = this.allowedMitglieder2;
}
if(mitglied != null && mitglied.result == RequestResult.SUCCESS) {
let dsbNummer = mitglied.payload.dsbMitgliedId;
console.log('DsbNummer for Mannschaftsmitglied in Mannschaft ' +
mannschaftId + " and Rueckennummer " + value + " is " + dsbNummer);

if(!allowed.includes(dsbNummer)){
this.match1.schuetzen.forEach(val => {
console.log('Checking ',val);
if(allowed.includes(val[0].dsbMitgliedId)){
console.log(val[0].rueckennummer + " is valid");
}
});
allowed = matchNr == 1 ? this.allowedMitglieder1 : this.allowedMitglieder2;

this.notificationService.showNotification({
id: 'NOTIFICATION_SCHUSSZETTEL_SCHUETZENNUMMER',
title: 'SPORTJAHRESPLAN.SCHUSSZETTEL.NOTIFICATION.SCHUETZENNUMMER.TITLE',
description: 'SPORTJAHRESPLAN.SCHUSSZETTEL.NOTIFICATION.SCHUETZENNUMMER.DESCRIPTION',
severity: NotificationSeverity.ERROR,
origin: NotificationOrigin.SYSTEM,
type: NotificationType.OK,
userAction: NotificationUserAction.ACCEPTED
});
}
}else{
console.log('Error');
if (!allowed.includes(dsbNummer)) {
valid = false;
}
});
}

if(!valid){
this.notificationService.showNotification({
id: 'NOTIFICATION_SCHUSSZETTEL_SCHUETZENNUMMER',
title: 'SPORTJAHRESPLAN.SCHUSSZETTEL.NOTIFICATION.SCHUETZENNUMMER.TITLE',
description: 'SPORTJAHRESPLAN.SCHUSSZETTEL.NOTIFICATION.SCHUETZENNUMMER.DESCRIPTION',
severity: NotificationSeverity.ERROR,
origin: NotificationOrigin.SYSTEM,
type: NotificationType.OK,
userAction: NotificationUserAction.ACCEPTED
});
}
}

onFehlerpunkteChange(value: string, matchNr: number, satzNr: number) {
Expand Down Expand Up @@ -401,6 +398,7 @@ export class SchusszettelComponent implements OnInit {
this.getBereitsgeschossenToCheckSchuetze();

// Kontrolle, ob die die Regeln eingehalten wurden
/*
for (let i = 0; i < this.matchAllPasse.length; i++) {

// Hat der Schütze 2x in einer Liga geschossen -> darf er nicht mehr in einer Liga darunter schießen
Expand All @@ -421,7 +419,7 @@ export class SchusszettelComponent implements OnInit {
console.log('Popup: ', this.passeSelberTag, 'hat bereits diesen Wettkampftag in der', this.selberTagVeranstaltung, 'geschossen');
this.savepopSelberTag();
}
}
}*/
}

savepopSelberTag() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@
<input type="password"
class="form-control"
required
minlength="8"
pattern="^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])[a-zA-Z0-9]+$"
pattern="^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[A-Za-z\d#$^+=!*()@%&?]{8,}$"
id="userPwdFormNewPwd"
name="userPwdFormNewPwd"
#userPwdFormNewPwd="ngModel"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<input type="text"
class="form-control"
required
pattern="(?=.*[A-Za-z])[A-Za-z\-\ \(\)]{1,50}$"
id="dsbMitgliedVorname"
name="dsbMitgliedVorname"
#dsbMitgliedVorname="ngModel"
Expand All @@ -40,6 +41,7 @@
<input type="text"
class="form-control"
required
pattern="(?=.*[A-Za-z])[A-Za-z\-\ \(\)]{1,50}$"
id="dsbMitgliedNachname"
name="dsbMitgliedNachname"
#dsbMitgliedNachname="ngModel"
Expand Down Expand Up @@ -90,6 +92,7 @@
<input type="text"
class="form-control"
required
pattern="(?=.*[0-9])[A-Z0-9\-\ \(\)]{1,50}$"
id="dsbMitgliedMitgliedsnummer"
name="dsbMitgliedMitgliedsnummer"
#dsbMitgliedMitgliedsnummer="ngModel"
Expand All @@ -111,18 +114,6 @@
<span> *</span>
</label>
<div class="col-sm-9">
<!--
<input type="text"
class="form-control"
required
pattern="[D|AT|CH|FR|IT|GB]"
id="dsbMitgliedNationalitaet"
name="dsbMitgliedNationalitaet"
#dsbMitgliedNationalitaet="ngModel"
[(ngModel)]="currentMitglied.nationalitaet"
[class.is-invalid]="dsbMitgliedNationalitaet.invalid && !dsbMitgliedNationalitaet.untouched"
placeholder="{{ 'MANAGEMENT.DSBMITGLIEDER_DETAIL.FORM.NATIONALITAET.PLACEHOLDER' | translate }}">
-->
<select class="form-control"
id="dsbMitgliedNationalitaet"
name="dsbMitgliedNationalitaet"
Expand Down Expand Up @@ -151,13 +142,12 @@
[(ngModel)]="currentVerein">
<option [ngValue]="verein" *ngFor="let verein of vereine"> {{verein.name}}</option>
</select>


<div class="invalid-feedback">
{{ 'MANAGEMENT.DSBMITGLIEDER_DETAIL.FORM.VEREIN.ERROR' | translate }}
</div>
</div>
</div>

<!-- Kampfrichterlizenz -->
<div class="form-group row">
<label for="dsbMitgliedKampfrichter"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ import {Component, OnInit} from '@angular/core';
import {ActivatedRoute, Router} from '@angular/router';
import {isNullOrUndefined, isUndefined} from '@shared/functions';
import {ButtonType, CommonComponentDirective} from '../../../../shared/components';

import {EINSTELLUNGEN_DETAIL_CONFIG} from './einstellungen-detail.config';


import {HttpClient} from '@angular/common/http';
import {

Notification, NotificationOrigin,
Expand All @@ -17,16 +13,14 @@ import {
import {EinstellungenDO} from '@verwaltung/types/einstellungen-do.class';
import {EinstellungenProviderService} from '@verwaltung/services/einstellungen-data-provider.service';
import {BogenligaResponse} from '@shared/data-provider';

import {EinstellungenDTO} from '@verwaltung/types/datatransfer/einstellungen-dto.class';

import {TableRow} from '@shared/components/tables/types/table-row.class';


const ID_PATH_PARAM = 'id';
const NOTIFICATION_UPDATE_EINSTELLUNG = 'einstellung_detail_update';
const NOTIFICATION_SAVE_EINSTELLUNG = 'einstellung_detail_save';
const NOTIFICATION_CREATE_EINSTELLUNG = 'einstellung_detail_save';

@Component({
selector: 'bla-einstellungen-detail',
templateUrl: './einstellungen-detail.component.html',
Expand All @@ -38,10 +32,6 @@ export class EinstellungenDetailComponent extends CommonComponentDirective imple
public currentEinstellung: EinstellungenDO = new EinstellungenDO();
public neucurrentEinstellung: EinstellungenDO = new EinstellungenDO();





public currentMitgliedNat: string;
public deleteLoading = false;
public saveLoading = false;
Expand All @@ -66,10 +56,6 @@ export class EinstellungenDetailComponent extends CommonComponentDirective imple
public onSave(ignore: any): void {

this.saveLoading = true;




this.currentEinstellung.key = this.neucurrentEinstellung.key;

const notificationSave: Notification = {
Expand All @@ -84,20 +70,10 @@ export class EinstellungenDetailComponent extends CommonComponentDirective imple

this.notificationService.showNotification(notificationSave);





}


ngOnInit() {






this.loading = true;
this.route.params.subscribe((params) => {
if (!isUndefined(params[ID_PATH_PARAM])) {
Expand All @@ -109,35 +85,26 @@ export class EinstellungenDetailComponent extends CommonComponentDirective imple
this.deleteLoading = false;
this.saveLoading = false;
} else {


this.loadById(params[ID_PATH_PARAM]);
}
}
});


}


private loadById(id: string) {

this.einstellungenProviderService.findById(id)
.then((response: BogenligaResponse<EinstellungenDO>) => this.handleSuccess(response))
.catch((response: BogenligaResponse<EinstellungenDO>) => this.handleSuccess(response));
}


private handleSuccess(response: BogenligaResponse<EinstellungenDO>) {
this.currentEinstellung = response.payload;
this.loading = false;


}




changevalue($event: MouseEvent) {
const notificationUpdateError: Notification = {

Expand All @@ -154,20 +121,23 @@ export class EinstellungenDetailComponent extends CommonComponentDirective imple

const tempEinstellung = this.neucurrentEinstellung.value;

if (this.currentEinstellung.key === 'SMTPEmail') {
const regex = new RegExp(/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/)
if (!regex.test(tempEinstellung)) {
notificationUpdateError.description = 'MANAGEMENT.EINSTELLUNG_DETAIL.NOTIFICATION.EINSTELLUNGEN_ERROR.DESCRIPTION.EMAIL';
}
} else if (this.currentEinstellung.key === 'SMTPPort') {
const regex = new RegExp(/^((6553[0-5])|(655[0-2][0-9])|(65[0-4][0-9]{2})|(6[0-4][0-9]{3})|([1-5][0-9]{4})|([0-5]{0,5})|([0-9]{1,4}))$/);
if(this.currentEinstellung.regex != null){
const regex = new RegExp(this.currentEinstellung.regex);
if (!regex.test(tempEinstellung)) {
notificationUpdateError.description = 'MANAGEMENT.EINSTELLUNG_DETAIL.NOTIFICATION.EINSTELLUNGEN_ERROR.DESCRIPTION.PORT';
}
} else if (this.currentEinstellung.key === 'SMTPHost') {
const regex = new RegExp(/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$|^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$/);
if (!regex.test(tempEinstellung)) {
notificationUpdateError.description = 'MANAGEMENT.EINSTELLUNG_DETAIL.NOTIFICATION.EINSTELLUNGEN_ERROR.DESCRIPTION.HOST';
switch (this.currentEinstellung.key){
case 'SMTPEmail':
notificationUpdateError.description = 'MANAGEMENT.EINSTELLUNG_DETAIL.NOTIFICATION.EINSTELLUNGEN_ERROR.DESCRIPTION.EMAIL';
break;
case 'SMTPPort':
notificationUpdateError.description = 'MANAGEMENT.EINSTELLUNG_DETAIL.NOTIFICATION.EINSTELLUNGEN_ERROR.DESCRIPTION.PORT';
break;
case 'SMTPHost':
notificationUpdateError.description = 'MANAGEMENT.EINSTELLUNG_DETAIL.NOTIFICATION.EINSTELLUNGEN_ERROR.DESCRIPTION.HOST';
break;
default:
notificationUpdateError.description = 'MANAGEMENT.EINSTELLUNG_DETAIL.NOTIFICATION.EINSTELLUNGEN_ERROR.DESCRIPTION.DEFAULT';
break;
}
}
}

Expand All @@ -177,12 +147,6 @@ export class EinstellungenDetailComponent extends CommonComponentDirective imple
this.currentEinstellung.value = this.neucurrentEinstellung.value;
this.einstellungenProviderService.update(this.currentEinstellung)
.then((response: BogenligaResponse<EinstellungenDO>) => {
if (!isNullOrUndefined(response)
&& !isNullOrUndefined(response.payload)
&& !isNullOrUndefined(response.payload.id)) {
}


const notificationUpdate: Notification = {

id: NOTIFICATION_UPDATE_EINSTELLUNG,
Expand Down Expand Up @@ -232,24 +196,17 @@ export class EinstellungenDetailComponent extends CommonComponentDirective imple

this.notificationService.showNotification(notification);


}
this.navigateToDetailDialog();
}, (response: BogenligaResponse<EinstellungenDO> ) => {

this.saveLoading = false;


});

}


private navigateToDetailDialog() {
this.router.navigateByUrl('/verwaltung/einstellungen');
}


}


Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,11 @@ export class LigaDetailComponent extends CommonComponentDirective implements OnI

private handlUebergeordnetResponseArraySuccess(response: BogenligaResponse<LigaDO[]>): void {
this.allUebergeordnete = [];
this.allUebergeordnete = response.payload;
this.allUebergeordnete = response.payload.filter(ubergeordneteLiga=>{
if(ubergeordneteLiga.name != this.currentLiga.name){
return ubergeordneteLiga.name;
}
});
if (this.id === 'add') {
this.currentUbergeordneteLiga = this.allUebergeordnete[0];
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@
id="userPwdFormNewPwd"
name="userPwdFormNewPwd"
required
minlength="8"
pattern="^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])[a-zA-Z0-9]+$"
pattern="^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[A-Za-z\d#$^+=!*()@%&?]{8,}$"
#userPwdFormNewPwd="ngModel"
[(ngModel)]="resetCredentials.password"
[class.is-invalid]="(userPwdFormNewPwd.invalid && !userPwdFormNewPwd.untouched)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
#ligaleiter="ngModel"
[(ngModel)]="currentUser">
<option [ngValue]="ligaleiter"
*ngFor="let ligaleiter of allUsers"> {{ligaleiter.email}}</option>
*ngFor="let ligaleiter of allLigaleiter"> {{ligaleiter.email}}</option>

placeholder="{{ 'MANAGEMENT.VERANSTALTUNG_DETAIL.FORM.LIGALEITER_MAIL.PLACEHOLDER' | translate }}">
</select>
Expand Down Expand Up @@ -283,7 +283,8 @@ <h4>{{'MANAGEMENT.VERANSTALTUNG_DETAIL.TABLE.TITLE' | translate}}</h4>
<bla-data-table [config]="tableConfig"
[rows]="rows"
[loading]="loading"
(onEditEntry)="onEdit($event)">
(onEditEntry)="onEdit($event)"
(onDeleteEntry)="onDeleteMannschaft($event)">
</bla-data-table>
</div>
</div>
Expand Down
Loading