diff --git a/src/app/main/services/datadog-rum.service.ts b/src/app/main/services/datadog-rum.service.ts
index ae842a1457..2900128a88 100644
--- a/src/app/main/services/datadog-rum.service.ts
+++ b/src/app/main/services/datadog-rum.service.ts
@@ -45,7 +45,7 @@ export class DatadogRumService {
}
setActiveUser(identifier: any, identifierType: 'iri' | 'email' | 'username'): void {
- if(datadogRum.getInternalContext().application_id) {
+ if (datadogRum.getInternalContext().application_id) {
datadogRum.setUser({
id: identifier,
identifierType: identifierType
@@ -54,7 +54,7 @@ export class DatadogRumService {
}
removeActiveUser(): void {
- if(datadogRum.getInternalContext().application_id) {
+ if (datadogRum.getInternalContext().application_id) {
datadogRum.removeUser();
}
}
diff --git a/src/app/main/status/status.component.html b/src/app/main/status/status.component.html
index 9ac9802693..c6bb9e93d9 100644
--- a/src/app/main/status/status.component.html
+++ b/src/app/main/status/status.component.html
@@ -1,5 +1,4 @@
-
-
+
@@ -20,13 +19,11 @@
{{message.type | uppercase}} {{status}} | {{message?.messa
Please come back in a few minutes and try to reload the page.
-
+
-
-
diff --git a/src/app/main/status/status.component.scss b/src/app/main/status/status.component.scss
index f32c15740f..477d5a5385 100644
--- a/src/app/main/status/status.component.scss
+++ b/src/app/main/status/status.component.scss
@@ -1,9 +1,11 @@
@import "../../../assets/style/responsive";
+@import "../../../assets/style/config";
.status-page {
background: #fff;
height: 100%;
width: 100%;
+ z-index: 999;
.container {
display: grid;
@@ -11,8 +13,8 @@
grid-template-rows: 1fr;
align-items: stretch;
align-content: space-evenly;
- padding-top: 120px;
- width: 480px;
+ padding-top: 16px;
+ max-width: 480px;
margin: 0 auto;
.image,
@@ -20,8 +22,8 @@
justify-self: stretch;
align-self: stretch;
box-sizing: border-box;
- max-height: 280px;
- width: 360px;
+ min-height: 280px;
+ max-width: 360px;
&.status-message {
line-height: 1.5;
@@ -35,10 +37,24 @@
}
}
}
+
+ &.representation-error {
+ background: none;
+
+ .image {
+ display: none !important;
+ }
+ }
}
.action {
- margin-top: 72px;
+ width: 360px;
+
+ p {
+ width: 100%;
+ word-wrap: break-word;
+ word-break: break-word;
+ }
}
// mobile device: phone
diff --git a/src/app/main/status/status.component.ts b/src/app/main/status/status.component.ts
index 59dcf2ea84..da3e63dc6e 100644
--- a/src/app/main/status/status.component.ts
+++ b/src/app/main/status/status.component.ts
@@ -25,10 +25,10 @@ export class StatusComponent implements OnInit {
@Input() comment?: string;
@Input() url?: string;
+ @Input() representation?: 'archive' | 'audio' | 'document' | 'still-image' | 'video';
refresh = false;
-
// error message that will be shown in template
message: StatusMsg;
@@ -92,6 +92,7 @@ export class StatusComponent implements OnInit {
) { }
ngOnInit() {
+
// status is not defined in Input parameter
if (!this.status) {
// but status is defined in app.routing
@@ -100,12 +101,17 @@ export class StatusComponent implements OnInit {
});
}
- // set the page title
- this._titleService.setTitle('DSP | Error ' + this.status);
-
// get error message by status
this.message = this.getMsgByStatus(this.status);
+ if (this.representation) {
+ this.comment = `There was an error loading the ${this.representation} file representation. Try to open it directly by clicking on the file url below:`;
+ this.message.action = 'goto';
+ } else {
+ // set the page title only in case of main error
+ this._titleService.setTitle(`DSP | ${this.getTypeByStatus(this.status).toUpperCase()} ${this.status}`);
+ }
+
}
getMsgByStatus(status: number): StatusMsg {
diff --git a/src/app/project/ontology/resource-class-form/resource-class-form.component.ts b/src/app/project/ontology/resource-class-form/resource-class-form.component.ts
index dccc5edf38..a476ffae07 100644
--- a/src/app/project/ontology/resource-class-form/resource-class-form.component.ts
+++ b/src/app/project/ontology/resource-class-form/resource-class-form.component.ts
@@ -311,7 +311,7 @@ export class ResourceClassFormComponent implements OnInit, AfterViewChecked {
this.lastModificationDate = classLabelResponse.lastModificationDate;
onto4Comment.lastModificationDate = this.lastModificationDate;
- if(updateComment.comments.length) { // if the comments array is not empty, send a request to update the comments
+ if (updateComment.comments.length) { // if the comments array is not empty, send a request to update the comments
this._dspApiConnection.v2.onto.updateResourceClass(onto4Comment).subscribe(
(classCommentResponse: ResourceClassDefinitionWithAllLanguages) => {
this.lastModificationDate = classCommentResponse.lastModificationDate;
diff --git a/src/app/workspace/resource/representation/archive/archive.component.html b/src/app/workspace/resource/representation/archive/archive.component.html
index 54c8f8f173..7be0f4698d 100644
--- a/src/app/workspace/resource/representation/archive/archive.component.html
+++ b/src/app/workspace/resource/representation/archive/archive.component.html
@@ -1,5 +1,8 @@
-