diff --git a/web/src/app/administration/access-items-management/access-items-management.component.html b/web/src/app/administration/access-items-management/access-items-management.component.html
index eac6455c0..d468c0641 100644
--- a/web/src/app/administration/access-items-management/access-items-management.component.html
+++ b/web/src/app/administration/access-items-management/access-items-management.component.html
@@ -173,10 +173,10 @@
-
0 " class="list-group">
+ 0 " class="list-group">
- {{group.name}}
- The user is not associated to
+
The user is not associated to
any groups
-
\ No newline at end of file
+
diff --git a/web/src/app/administration/classification/details/classification-details.component.spec.ts b/web/src/app/administration/classification/details/classification-details.component.spec.ts
index ce24255b4..f30ca650a 100644
--- a/web/src/app/administration/classification/details/classification-details.component.spec.ts
+++ b/web/src/app/administration/classification/details/classification-details.component.spec.ts
@@ -67,9 +67,8 @@ describe('ClassificationDetailsComponent', () => {
spyOn(classificationCategoriesService, 'getCategories').and.returnValue(of(['firstCategory', 'secondCategory']));
spyOn(classificationsService, 'deleteClassification').and.returnValue(of(true));
spyOn(classificationCategoriesService, 'getCategoryIcon').and.returnValue(new Pair('assets/icons/categories/external.svg'));
- component.classification = new ClassificationDefinition('id1', undefined, undefined, undefined, undefined, undefined, undefined,
- undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined,
- undefined, undefined, undefined, undefined, new LinksClassification({ 'self': '' }));
+ component.classification = new ClassificationDefinition('id1');
+ component.classification._links = new LinksClassification({ 'self': '' });
treeService = TestBed.get(TreeService);
fixture.detectChanges();
done();
diff --git a/web/src/app/administration/classification/details/classification-details.component.ts b/web/src/app/administration/classification/details/classification-details.component.ts
index 8636580d8..8a3f4ea8a 100644
--- a/web/src/app/administration/classification/details/classification-details.component.ts
+++ b/web/src/app/administration/classification/details/classification-details.component.ts
@@ -102,18 +102,18 @@ export class ClassificationDetailsComponent implements OnInit, OnDestroy {
this.routeSubscription = this.route.params.subscribe(params => {
let id = params['id'];
- this.action = undefined;
+ delete this.action;
if (id && id.indexOf('new-classification') !== -1) {
this.action = ACTION.CREATE;
this.badgeMessage = 'Creating new classification';
id = id.replace('new-classification/', '');
if (id === 'undefined') {
- id = undefined;
+ id = '';
}
this.fillClassificationInformation(this.classification ? this.classification : new ClassificationDefinition())
}
- if (!this.classification || this.classification.classificationId !== id && id && id !== '') {
+ if (!this.classification || this.classification.classificationId !== id && id ) {
this.selectClassification(id);
}
});
@@ -140,7 +140,7 @@ export class ClassificationDetailsComponent implements OnInit, OnDestroy {
}
backClicked(): void {
- this.classificationsService.selectClassification(undefined);
+ this.classificationsService.selectClassification();
this.router.navigate(['./'], { relativeTo: this.route.parent });
}
@@ -167,8 +167,8 @@ export class ClassificationDetailsComponent implements OnInit, OnDestroy {
}
private initProperties() {
- this.classification = undefined;
- this.action = undefined
+ delete this.classification;
+ delete this.action;
}
private async onSave() {
@@ -287,9 +287,9 @@ export class ClassificationDetailsComponent implements OnInit, OnDestroy {
.deleteClassification(this.classification._links.self.href)
.subscribe(() => {
const key = this.classification.key;
- this.classification = undefined;
+ delete this.classification;
this.afterRequest();
- this.classificationsService.selectClassification(undefined);
+ this.classificationsService.selectClassification();
this.router.navigate(['taskana/administration/classifications']);
this.alertService.triggerAlert(new AlertModel(AlertType.SUCCESS, `Classification ${key} was removed successfully`))
}, error => {
diff --git a/web/src/app/administration/classification/master/list/classification-list.component.ts b/web/src/app/administration/classification/master/list/classification-list.component.ts
index 70bbf4bec..abc3f684d 100644
--- a/web/src/app/administration/classification/master/list/classification-list.component.ts
+++ b/web/src/app/administration/classification/master/list/classification-list.component.ts
@@ -75,10 +75,10 @@ export class ClassificationListComponent implements OnInit, OnDestroy {
this.classifications = [];
this.categoryService.selectClassificationType(classificationTypeSelected);
this.getClassifications();
- this.selectClassification(undefined);
+ this.selectClassification();
}
- selectClassification(id: string) {
+ selectClassification(id?: string) {
this.selectedId = id;
if (!id) {
this.router.navigate(['taskana/administration/classifications']);
@@ -128,7 +128,7 @@ export class ClassificationListComponent implements OnInit, OnDestroy {
}
- private getClassifications(key: string = undefined) {
+ private getClassifications(key?: string) {
this.requestInProgress = true;
this.classificationService.getClassifications()
.subscribe((classifications: Array