diff --git a/frontend/src/app/projects/models/diagrams/model-diagram-dialog/model-diagram-dialog.component.css b/frontend/src/app/projects/models/diagrams/model-diagram-dialog/model-diagram-dialog.component.css deleted file mode 100644 index c536696f4f..0000000000 --- a/frontend/src/app/projects/models/diagrams/model-diagram-dialog/model-diagram-dialog.component.css +++ /dev/null @@ -1,18 +0,0 @@ -/* - * SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors - * SPDX-License-Identifier: Apache-2.0 - */ - -.diagram-error { - border-radius: 5px; - border: solid lightgray; - width: 100%; - height: 200px; - text-align: center; - padding: 15px 0; - margin-bottom: 10px; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; -} diff --git a/frontend/src/app/projects/models/diagrams/model-diagram-dialog/model-diagram-dialog.component.html b/frontend/src/app/projects/models/diagrams/model-diagram-dialog/model-diagram-dialog.component.html index 71ea3c25ff..394dc33db3 100644 --- a/frontend/src/app/projects/models/diagrams/model-diagram-dialog/model-diagram-dialog.component.html +++ b/frontend/src/app/projects/models/diagrams/model-diagram-dialog/model-diagram-dialog.component.html @@ -31,14 +31,16 @@

View diagrams

@if (this.diagramMetadata?.diagrams?.length === 0) { Your model doesn't seem to contain diagrams. } @else if (filteredDiagrams === undefined) { -
+ Loading diagrams... +
@for (_ of loaderArray; track $index) { @@ -59,12 +61,12 @@

View diagrams

@if (diagram.success) { @if (!diagrams[diagram.uuid] || diagrams[diagram.uuid].loading) { View diagrams } } @else { -
+
error
Diagram export has failed.
Please contact your diagram cache administrator. diff --git a/frontend/src/app/projects/models/diagrams/model-diagram-dialog/model-diagram-dialog.component.ts b/frontend/src/app/projects/models/diagrams/model-diagram-dialog/model-diagram-dialog.component.ts index c1cbe65c76..610c69c381 100644 --- a/frontend/src/app/projects/models/diagrams/model-diagram-dialog/model-diagram-dialog.component.ts +++ b/frontend/src/app/projects/models/diagrams/model-diagram-dialog/model-diagram-dialog.component.ts @@ -46,7 +46,6 @@ import { ModelDiagramCodeBlockComponent } from './model-diagram-code-block/model @Component({ selector: 'app-model-diagram-dialog', templateUrl: './model-diagram-dialog.component.html', - styleUrls: ['./model-diagram-dialog.component.css'], standalone: true, imports: [ ModelDiagramCodeBlockComponent,