+
@@ -289,14 +289,14 @@
diff --git a/src/app/main/dialog/dialog.component.spec.ts b/src/app/main/dialog/dialog.component.spec.ts
index 1015c16195..66123239f1 100644
--- a/src/app/main/dialog/dialog.component.spec.ts
+++ b/src/app/main/dialog/dialog.component.spec.ts
@@ -1,3 +1,4 @@
+import { CommonModule } from '@angular/common';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { ReactiveFormsModule } from '@angular/forms';
import { MatAutocompleteModule } from '@angular/material/autocomplete';
@@ -52,6 +53,7 @@ describe('DialogComponent', () => {
PropertyFormComponent
],
imports: [
+ CommonModule,
DspActionModule,
MatAutocompleteModule,
MatButtonModule,
diff --git a/src/app/main/dialog/dialog.component.ts b/src/app/main/dialog/dialog.component.ts
index 84fa8a5505..73d19590e2 100644
--- a/src/app/main/dialog/dialog.component.ts
+++ b/src/app/main/dialog/dialog.component.ts
@@ -1,5 +1,6 @@
import { Component, Inject, OnInit } from '@angular/core';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
+import { PropertyInfoObject } from 'src/app/project/ontology/default-data/default-properties';
export interface DialogData {
mode: string; // switch mode
@@ -10,6 +11,10 @@ export interface DialogData {
comment?: string;
name?: string;
existing?: string[];
+ propInfo?: PropertyInfoObject;
+ position?: number;
+ parentIri?: string;
+ projectCode?: string;
}
@Component({
diff --git a/src/app/material-module.ts b/src/app/material-module.ts
index ca30c7aeba..cfa42c6bad 100644
--- a/src/app/material-module.ts
+++ b/src/app/material-module.ts
@@ -11,6 +11,7 @@ import { MatChipsModule } from '@angular/material/chips';
import { MatDatepickerModule } from '@angular/material/datepicker';
import { MatDialogModule } from '@angular/material/dialog';
import { MatExpansionModule } from '@angular/material/expansion';
+import { MatFormFieldModule } from '@angular/material/form-field';
import { MatGridListModule } from '@angular/material/grid-list';
import { MatIconModule } from '@angular/material/icon';
import { MatInputModule } from '@angular/material/input';
@@ -43,6 +44,7 @@ const matModules = [
MatDatepickerModule,
MatDialogModule,
MatExpansionModule,
+ MatFormFieldModule,
MatGridListModule,
MatIconModule,
MatInputModule,
diff --git a/src/app/project/board/board.component.ts b/src/app/project/board/board.component.ts
index 48947edf65..0963bb2579 100644
--- a/src/app/project/board/board.component.ts
+++ b/src/app/project/board/board.component.ts
@@ -43,7 +43,7 @@ export class BoardComponent implements OnInit {
projectAdmin = false;
// project shortcode; as identifier in project cache service
- projectcode: string;
+ projectCode: string;
// project data
project: ReadProject;
@@ -77,11 +77,11 @@ export class BoardComponent implements OnInit {
) {
// get the shortcode of the current project
this._route.parent.paramMap.subscribe((params: Params) => {
- this.projectcode = params.get('shortcode');
+ this.projectCode = params.get('shortcode');
});
// set the page title
- this._titleService.setTitle('Project ' + this.projectcode);
+ this._titleService.setTitle('Project ' + this.projectCode);
}
ngOnInit() {
@@ -101,7 +101,7 @@ export class BoardComponent implements OnInit {
getProject() {
// get the project data from cache
- this._cache.get(this.projectcode).subscribe(
+ this._cache.get(this.projectCode).subscribe(
(response: ReadProject) => {
this.project = response;
diff --git a/src/app/project/board/dataset-tab-view/dataset-tab-view.component.html b/src/app/project/board/dataset-tab-view/dataset-tab-view.component.html
index dc10a07dbb..673aab2d4f 100644
--- a/src/app/project/board/dataset-tab-view/dataset-tab-view.component.html
+++ b/src/app/project/board/dataset-tab-view/dataset-tab-view.component.html
@@ -9,7 +9,7 @@
Selected dataset: {{ metadata.title }}
-
+
diff --git a/src/app/project/board/dataset-tab-view/dataset-tab-view.component.ts b/src/app/project/board/dataset-tab-view/dataset-tab-view.component.ts
index fd10fc5057..87bb381f60 100644
--- a/src/app/project/board/dataset-tab-view/dataset-tab-view.component.ts
+++ b/src/app/project/board/dataset-tab-view/dataset-tab-view.component.ts
@@ -1,4 +1,4 @@
-import { Component, Input } from '@angular/core';
+import { Component, Input, OnInit } from '@angular/core';
import { Dataset } from '@dasch-swiss/dsp-js';
@Component({
@@ -6,7 +6,7 @@ import { Dataset } from '@dasch-swiss/dsp-js';
templateUrl: './dataset-tab-view.component.html',
styleUrls: ['./dataset-tab-view.component.scss']
})
-export class DatasetTabViewComponent {
+export class DatasetTabViewComponent implements OnInit {
// metadata input object
@Input() metadata: Dataset;
@@ -14,6 +14,8 @@ export class DatasetTabViewComponent {
// number of datasets available for this project
@Input() noOfDatasets: number;
+ metadataObject: {[key: string]: any};
+
// metadata keys that we do not want to display
excludeKeys = ['project', 'qualifiedAttribution'];
@@ -22,4 +24,8 @@ export class DatasetTabViewComponent {
// date keys from metadata object for formatting
dateKeys = ['dateCreated', 'dateModified', 'datePublished'];
+
+ ngOnInit() {
+ this.metadataObject = this.metadata;
+ }
}
diff --git a/src/app/project/board/project-tab-view/project-tab-view.component.html b/src/app/project/board/project-tab-view/project-tab-view.component.html
index dcc11ff2ae..d032629e55 100644
--- a/src/app/project/board/project-tab-view/project-tab-view.component.html
+++ b/src/app/project/board/project-tab-view/project-tab-view.component.html
@@ -2,7 +2,7 @@
-
+
diff --git a/src/app/project/board/project-tab-view/project-tab-view.component.ts b/src/app/project/board/project-tab-view/project-tab-view.component.ts
index f776a38eaf..72befa6878 100644
--- a/src/app/project/board/project-tab-view/project-tab-view.component.ts
+++ b/src/app/project/board/project-tab-view/project-tab-view.component.ts
@@ -1,7 +1,7 @@
import { Component, Input, OnInit } from '@angular/core';
import {
DataManagementPlan,
- Grant, IId, Organization, Person, SingleProject
+ Grant, IId, IUrl, Organization, Person, Place, SingleProject
} from '@dasch-swiss/dsp-js';
import { MetadataService } from '../dataset-metadata.service';
@@ -16,6 +16,8 @@ export class ProjectTabViewComponent implements OnInit {
@Input() selectedProject: SingleProject;
@Input() subProperties: Object;
+ projectObject: {[key: string]: any};
+
// metadata keys that we do not want to display in template
excludeKeys = ['contactPoint'];
@@ -36,6 +38,8 @@ export class ProjectTabViewComponent implements OnInit {
ngOnInit() {
+ this.projectObject = this.selectedProject;
+
// get DMP
if (this.selectedProject.dataManagementPlan) {
this.dmps = this.getDMP(this.selectedProject.dataManagementPlan);
diff --git a/src/app/project/collaboration/add-user/add-user.component.ts b/src/app/project/collaboration/add-user/add-user.component.ts
index 7fb21bc354..8d2b91eeb3 100644
--- a/src/app/project/collaboration/add-user/add-user.component.ts
+++ b/src/app/project/collaboration/add-user/add-user.component.ts
@@ -30,7 +30,7 @@ export class AddUserComponent implements OnInit {
* project name to get existing team members
* or to know where to add selected user
*/
- @Input() projectcode: string;
+ @Input() projectCode: string;
/**
* event emitter, when the selected user will be added to the list
@@ -141,7 +141,7 @@ export class AddUserComponent implements OnInit {
const members: string[] = [];
// get all members of this project; response from cache
- this._cache.get('members_of_' + this.projectcode, this._dspApiConnection.admin.projectsEndpoint.getProjectMembersByShortcode(this.projectcode)).subscribe(
+ this._cache.get('members_of_' + this.projectCode, this._dspApiConnection.admin.projectsEndpoint.getProjectMembersByShortcode(this.projectCode)).subscribe(
(res: ApiResponseData) => {
for (const m of res.body.members) {
members.push(m.id);
@@ -291,14 +291,14 @@ export class AddUserComponent implements OnInit {
this.selectedUser = response.body.user;
// the following request should never start
- this.isAlreadyMember = (!!response.body.user.projects.find(p => p.shortcode === this.projectcode));
+ this.isAlreadyMember = (!!response.body.user.projects.find(p => p.shortcode === this.projectCode));
if (!this.isAlreadyMember) {
this.loading = true;
- // get project iri by projectcode
- this._cache.get(this.projectcode).subscribe(
+ // get project iri by projectCode
+ this._cache.get(this.projectCode).subscribe(
(p: ReadProject) => {
// add user to project
this._dspApiConnection.admin.usersEndpoint.addUserToProjectMembership(this.selectedUser.id, p.id).subscribe(
@@ -355,7 +355,7 @@ export class AddUserComponent implements OnInit {
position: {
top: '112px'
},
- data: { project: this.projectcode, name: this.selectUserForm.controls['username'].value, mode: mode }
+ data: { project: this.projectCode, name: this.selectUserForm.controls['username'].value, mode: mode }
};
const dialogRef = this._dialog.open(DialogComponent, dialogConfig);
diff --git a/src/app/project/collaboration/collaboration.component.html b/src/app/project/collaboration/collaboration.component.html
index 22c1ee423f..8aad59d9ff 100644
--- a/src/app/project/collaboration/collaboration.component.html
+++ b/src/app/project/collaboration/collaboration.component.html
@@ -1,6 +1,6 @@
-
diff --git a/src/app/project/collaboration/collaboration.component.ts b/src/app/project/collaboration/collaboration.component.ts
index 30935ab5e6..d704421bd4 100644
--- a/src/app/project/collaboration/collaboration.component.ts
+++ b/src/app/project/collaboration/collaboration.component.ts
@@ -33,7 +33,7 @@ export class CollaborationComponent implements OnInit {
projectAdmin = false;
// project shortcode; as identifier in project cache service
- projectcode: string;
+ projectCode: string;
// project data
project: ReadProject;
@@ -57,11 +57,11 @@ export class CollaborationComponent implements OnInit {
// get the shortcode of the current project
this._route.parent.paramMap.subscribe((params: Params) => {
- this.projectcode = params.get('shortcode');
+ this.projectCode = params.get('shortcode');
});
// set the page title
- this._titleService.setTitle('Project ' + this.projectcode + ' | Collaboration');
+ this._titleService.setTitle('Project ' + this.projectCode + ' | Collaboration');
// --> TODO go back to project page, if the logged-in user has no admin rights
// is the logged-in user a project admin?
@@ -86,7 +86,7 @@ export class CollaborationComponent implements OnInit {
this.sysAdmin = this.session.user.sysAdmin;
// get the project data from cache
- this._cache.get(this.projectcode).subscribe(
+ this._cache.get(this.projectCode).subscribe(
(response: ReadProject) => {
this.project = response;
@@ -112,10 +112,10 @@ export class CollaborationComponent implements OnInit {
*/
initList(): void {
// set the cache
- this._cache.get('members_of_' + this.projectcode, this._dspApiConnection.admin.projectsEndpoint.getProjectMembersByShortcode(this.projectcode));
+ this._cache.get('members_of_' + this.projectCode, this._dspApiConnection.admin.projectsEndpoint.getProjectMembersByShortcode(this.projectCode));
// get the project data from cache
- this._cache.get('members_of_' + this.projectcode, this._dspApiConnection.admin.projectsEndpoint.getProjectMembersByShortcode(this.projectcode)).subscribe(
+ this._cache.get('members_of_' + this.projectCode, this._dspApiConnection.admin.projectsEndpoint.getProjectMembersByShortcode(this.projectCode)).subscribe(
(response: ApiResponseData
) => {
this.projectMembers = response.body.members;
@@ -148,7 +148,7 @@ export class CollaborationComponent implements OnInit {
// referesh the component
this.loading = true;
// update the cache
- this._cache.del('members_of_' + this.projectcode);
+ this._cache.del('members_of_' + this.projectCode);
this.initList();
diff --git a/src/app/project/collaboration/select-group/select-group.component.ts b/src/app/project/collaboration/select-group/select-group.component.ts
index edd9e2b4e3..7b40525821 100644
--- a/src/app/project/collaboration/select-group/select-group.component.ts
+++ b/src/app/project/collaboration/select-group/select-group.component.ts
@@ -13,7 +13,7 @@ import { ErrorHandlerService } from 'src/app/main/error/error-handler.service';
export class SelectGroupComponent implements OnInit {
// project short code
- @Input() projectcode: string;
+ @Input() projectCode: string;
// project iri
@Input() projectid: string;
@@ -50,10 +50,10 @@ export class SelectGroupComponent implements OnInit {
setList() {
// set cache for groups
- this._cache.get('groups_of_' + this.projectcode, this._dspApiConnection.admin.groupsEndpoint.getGroups());
+ this._cache.get('groups_of_' + this.projectCode, this._dspApiConnection.admin.groupsEndpoint.getGroups());
// update list of groups with the project specific groups
- this._cache.get('groups_of_' + this.projectcode, this._dspApiConnection.admin.groupsEndpoint.getGroups()).subscribe(
+ this._cache.get('groups_of_' + this.projectCode, this._dspApiConnection.admin.groupsEndpoint.getGroups()).subscribe(
(response: ApiResponseData) => {
for (const group of response.body.groups) {
if (group.project.id === this.projectid) {
diff --git a/src/app/project/list/list-info-form/list-info-form.component.spec.ts b/src/app/project/list/list-info-form/list-info-form.component.spec.ts
index 061deae18f..b67d0438aa 100644
--- a/src/app/project/list/list-info-form/list-info-form.component.spec.ts
+++ b/src/app/project/list/list-info-form/list-info-form.component.spec.ts
@@ -47,7 +47,7 @@ class TestHostUpdateListComponent {
* test host component to simulate parent component for creating a new list.
*/
@Component({
- template: ''
+ template: ''
})
class TestHostCreateListComponent {
@@ -55,7 +55,7 @@ class TestHostCreateListComponent {
mode = 'create';
- projectcode = '0001';
+ projectCode = '0001';
projectIri = 'http://rdfh.ch/projects/0001';
diff --git a/src/app/project/list/list-info-form/list-info-form.component.ts b/src/app/project/list/list-info-form/list-info-form.component.ts
index b2600efc5b..0f85179880 100644
--- a/src/app/project/list/list-info-form/list-info-form.component.ts
+++ b/src/app/project/list/list-info-form/list-info-form.component.ts
@@ -28,7 +28,7 @@ export class ListInfoFormComponent implements OnInit {
@Input() mode: 'create' | 'update';
// project short code
- @Input() projectcode: string;
+ @Input() projectCode: string;
@Input() projectIri: string;
diff --git a/src/app/project/list/list-item-form/edit-list-item/edit-list-item.component.ts b/src/app/project/list/list-item-form/edit-list-item/edit-list-item.component.ts
index 47ebc63883..625d1756bc 100644
--- a/src/app/project/list/list-item-form/edit-list-item/edit-list-item.component.ts
+++ b/src/app/project/list/list-item-form/edit-list-item/edit-list-item.component.ts
@@ -8,10 +8,12 @@ import {
List,
ListNodeInfo,
ListNodeInfoResponse,
+ ReadProject,
StringLiteral,
UpdateChildNodeRequest
} from '@dasch-swiss/dsp-js';
import { DspApiConnectionToken } from '@dasch-swiss/dsp-ui';
+import { CacheService } from 'src/app/main/cache/cache.service';
import { ErrorHandlerService } from 'src/app/main/error/error-handler.service';
@Component({
@@ -64,12 +66,23 @@ export class EditListItemComponent implements OnInit {
constructor(
@Inject(DspApiConnectionToken) private _dspApiConnection: KnoraApiConnection,
+ private _cache: CacheService,
private _errorHandler: ErrorHandlerService
) { }
ngOnInit(): void {
this.loading = true;
+ // get the project data from cache
+ this._cache.get(this.projectCode).subscribe(
+ (response: ReadProject) => {
+ this.projectIri = response.id;
+ },
+ (error: ApiResponseError) => {
+ this._errorHandler.showMessage(error);
+ }
+ );
+
// if updating a node, get the existing node info
if (this.mode === 'update') {
this._dspApiConnection.admin.listsEndpoint.getListNodeInfo(this.iri).subscribe(
diff --git a/src/app/project/list/list-item-form/list-item-form.component.spec.ts b/src/app/project/list/list-item-form/list-item-form.component.spec.ts
index 5eb669bccf..f8b470ade0 100644
--- a/src/app/project/list/list-item-form/list-item-form.component.spec.ts
+++ b/src/app/project/list/list-item-form/list-item-form.component.spec.ts
@@ -32,7 +32,7 @@ import { ListItemFormComponent, ListNodeOperation } from './list-item-form.compo
[language]="language"
(refreshParent)="updateView($event)"
[projectIri]="projectIri"
- [projectcode]="projectCode"
+ [projectCode]="projectCode"
[labels]="labels">
`
})
diff --git a/src/app/project/list/list-item-form/list-item-form.component.ts b/src/app/project/list/list-item-form/list-item-form.component.ts
index fc8f011ac2..5d50bbe58d 100644
--- a/src/app/project/list/list-item-form/list-item-form.component.ts
+++ b/src/app/project/list/list-item-form/list-item-form.component.ts
@@ -59,7 +59,7 @@ export class ListItemFormComponent implements OnInit {
/**
* project shortcode
*/
- @Input() projectcode?: string;
+ @Input() projectCode?: string;
/**
* project id
@@ -142,7 +142,7 @@ export class ListItemFormComponent implements OnInit {
const childNode: CreateChildNodeRequest = new CreateChildNodeRequest();
childNode.parentNodeIri = this.parentIri;
childNode.projectIri = this.projectIri;
- childNode.name = this.projectcode + '-' + Math.random().toString(36).substr(2) + Math.random().toString(36).substr(2);
+ childNode.name = this.projectCode + '-' + Math.random().toString(36).substr(2) + Math.random().toString(36).substr(2);
// initialize labels
let i = 0;
@@ -222,7 +222,7 @@ export class ListItemFormComponent implements OnInit {
title: mode === 'editListNode' || 'deleteListNode' ? name : '',
id: iri,
project: this.projectIri,
- projectCode: this.projectcode,
+ projectCode: this.projectCode,
parentIri: this.parentIri,
position: this.position
}
diff --git a/src/app/project/list/list-item/list-item.component.html b/src/app/project/list/list-item/list-item.component.html
index 561bd5f6f9..7d1f8d56cc 100644
--- a/src/app/project/list/list-item/list-item.component.html
+++ b/src/app/project/list/list-item/list-item.component.html
@@ -10,7 +10,7 @@
@@ -18,7 +18,7 @@
0"
[language]="language" [childNode]="true" [list]="node.children" [parentIri]="node.id"
- [projectIri]="projectIri" [projectcode]="projectcode" (refreshChildren)="updateParentNodeChildren($event, node.position)">
+ [projectIri]="projectIri" [projectCode]="projectCode" (refreshChildren)="updateParentNodeChildren($event, node.position)">
@@ -26,14 +26,14 @@
@@ -43,7 +43,7 @@
diff --git a/src/app/project/list/list-item/list-item.component.spec.ts b/src/app/project/list/list-item/list-item.component.spec.ts
index 1ff1d09416..8ad8cb70fa 100644
--- a/src/app/project/list/list-item/list-item.component.spec.ts
+++ b/src/app/project/list/list-item/list-item.component.spec.ts
@@ -22,7 +22,7 @@ import { ListItemComponent } from './list-item.component';
[list]="list"
[parentIri]="parentIri"
[projectIri]="projectIri"
- [projectcode]="projectCode">
+ [projectCode]="projectCode">
`
})
class TestHostComponent implements OnInit {
diff --git a/src/app/project/list/list-item/list-item.component.ts b/src/app/project/list/list-item/list-item.component.ts
index 67f38b3d89..6f6e7c6ad0 100644
--- a/src/app/project/list/list-item/list-item.component.ts
+++ b/src/app/project/list/list-item/list-item.component.ts
@@ -24,7 +24,7 @@ export class ListItemComponent implements OnInit {
@Input() parentIri?: string;
- @Input() projectcode: string;
+ @Input() projectCode: string;
@Input() projectIri: string;
diff --git a/src/app/project/list/list.component.html b/src/app/project/list/list.component.html
index 356c4f59da..6b48ef5320 100644
--- a/src/app/project/list/list.component.html
+++ b/src/app/project/list/list.component.html
@@ -79,7 +79,7 @@
-
+
diff --git a/src/app/project/list/list.component.ts b/src/app/project/list/list.component.ts
index 7d109045d8..5b16cf76f4 100644
--- a/src/app/project/list/list.component.ts
+++ b/src/app/project/list/list.component.ts
@@ -38,7 +38,7 @@ export class ListComponent implements OnInit {
projectAdmin = false;
// project shortcode; as identifier in project cache service
- projectcode: string;
+ projectCode: string;
// project data
project: ReadProject;
@@ -83,7 +83,7 @@ export class ListComponent implements OnInit {
// get the shortcode of the current project
this._route.parent.paramMap.subscribe((params: Params) => {
- this.projectcode = params.get('shortcode');
+ this.projectCode = params.get('shortcode');
});
// get list iri from route
@@ -93,9 +93,9 @@ export class ListComponent implements OnInit {
// set the page title
if (this.listIri) {
- this._titleService.setTitle('Project ' + this.projectcode + ' | List');
+ this._titleService.setTitle('Project ' + this.projectCode + ' | List');
} else {
- this._titleService.setTitle('Project ' + this.projectcode + ' | Lists');
+ this._titleService.setTitle('Project ' + this.projectCode + ' | Lists');
}
}
@@ -110,7 +110,7 @@ export class ListComponent implements OnInit {
this.sysAdmin = this.session.user.sysAdmin;
// get the project data from cache
- this._cache.get(this.projectcode).subscribe(
+ this._cache.get(this.projectCode).subscribe(
(response: ReadProject) => {
this.project = response;
@@ -186,7 +186,7 @@ export class ListComponent implements OnInit {
this.list = this.lists.find(i => i.id === id);
- const goto = 'project/' + this.projectcode + '/lists/' + encodeURIComponent(id);
+ const goto = 'project/' + this.projectCode + '/lists/' + encodeURIComponent(id);
this._router.navigateByUrl(goto, { skipLocationChange: false });
setTimeout(() => {
diff --git a/src/app/project/ontology/ontology-form/ontology-form.component.html b/src/app/project/ontology/ontology-form/ontology-form.component.html
index 305f09c1c1..b0cd1fe52a 100644
--- a/src/app/project/ontology/ontology-form/ontology-form.component.html
+++ b/src/app/project/ontology/ontology-form/ontology-form.component.html
@@ -24,7 +24,7 @@
diff --git a/src/app/project/ontology/ontology.component.html b/src/app/project/ontology/ontology.component.html
index 97cf903641..db135d6168 100644
--- a/src/app/project/ontology/ontology.component.html
+++ b/src/app/project/ontology/ontology.component.html
@@ -140,7 +140,7 @@
@@ -193,7 +193,6 @@
objectType is not a linkValue (otherwise we have the property twice) -->
diff --git a/src/app/project/ontology/ontology.component.ts b/src/app/project/ontology/ontology.component.ts
index 75abde78d9..9df70bb29d 100644
--- a/src/app/project/ontology/ontology.component.ts
+++ b/src/app/project/ontology/ontology.component.ts
@@ -372,7 +372,7 @@ export class OntologyComponent implements OnInit {
position: {
top: '112px'
},
- data: { id: resClassInfo.iri, title: resClassInfo.label, subtitle: 'Customize resource class', mode: mode, project: this.project.id }
+ data: { id: resClassInfo.iri, title: resClassInfo.label, subtitle: 'Customize resource class', mode: mode, project: this.projectCode }
};
const dialogRef = this._dialog.open(
diff --git a/src/app/project/ontology/property-form/property-form.component.spec.ts b/src/app/project/ontology/property-form/property-form.component.spec.ts
index 33984178b7..b99180fd0b 100644
--- a/src/app/project/ontology/property-form/property-form.component.spec.ts
+++ b/src/app/project/ontology/property-form/property-form.component.spec.ts
@@ -247,7 +247,7 @@ describe('PropertyFormComponent', () => {
const hostCompDe = simpleTextHostFixture.debugElement;
const submitButton: DebugElement = hostCompDe.query(By.css('button.submit'));
- expect(submitButton.nativeElement.innerText).toEqual(' Update ');
+ expect(submitButton.nativeElement.innerText).toContain('Update');
simpleTextHostComponent.propertyFormComponent.handleData([], 'labels');
simpleTextHostFixture.detectChanges();
diff --git a/src/app/project/ontology/resource-class-form/resource-class-form.component.html b/src/app/project/ontology/resource-class-form/resource-class-form.component.html
index 2fba513d57..5733370d02 100644
--- a/src/app/project/ontology/resource-class-form/resource-class-form.component.html
+++ b/src/app/project/ontology/resource-class-form/resource-class-form.component.html
@@ -8,7 +8,7 @@
@@ -39,7 +39,7 @@