diff --git a/frontend/src/app/projects/models/backup-settings/trigger-pipeline/trigger-pipeline.component.css b/frontend/src/app/projects/models/backup-settings/trigger-pipeline/trigger-pipeline.component.css deleted file mode 100644 index ceb788099..000000000 --- a/frontend/src/app/projects/models/backup-settings/trigger-pipeline/trigger-pipeline.component.css +++ /dev/null @@ -1,21 +0,0 @@ -/* - * SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors - * SPDX-License-Identifier: Apache-2.0 - */ - -.pipeline-card:hover { - background-color: var(--hover-color); - cursor: pointer; -} - -.configuration { - margin: 10px; -} - -.footer-wrapper { - align-items: flex-end; -} - -.pipelines { - max-height: 80vh; -} diff --git a/frontend/src/app/projects/models/backup-settings/trigger-pipeline/trigger-pipeline.component.html b/frontend/src/app/projects/models/backup-settings/trigger-pipeline/trigger-pipeline.component.html index 38e518171..d93250364 100644 --- a/frontend/src/app/projects/models/backup-settings/trigger-pipeline/trigger-pipeline.component.html +++ b/frontend/src/app/projects/models/backup-settings/trigger-pipeline/trigger-pipeline.component.html @@ -5,67 +5,89 @@
-
- Please select the pipeline you'd like to execute or to see the logs: - - add_circle -
-
-
-
+ Please select the pipeline you'd like to execute or to see the logs: + + add_circle - Backup (ID: {{ pipeline.id }}) -
- Runs nightly at 3am - with commit historywithout commit history + } + @if ((this.pipelineService.pipelines$ | async) === undefined) { + + } @else { +
+ @for ( + pipeline of this.pipelineService.pipelines$ | async; + track pipeline.id + ) { + @if (!selectedPipeline || selectedPipeline.id === pipeline.id) { + + } + } @empty { +
+ No pipelines found. Please create a new pipeline.
-
+ }
-
-
- No pipelines found. Please create a new pipeline. -
+ } -
-
+ @if (selectedPipeline) { +

Run the pipeline

@@ -86,9 +108,6 @@

Run the pipeline

-
- -

Additional actions

@@ -106,15 +125,16 @@

Additional actions

> View runs - - Force deletion - + @if (userService.validateUserRole("administrator")) { + + Force deletion + + }
-
+ }
diff --git a/frontend/src/app/projects/models/backup-settings/trigger-pipeline/trigger-pipeline.component.ts b/frontend/src/app/projects/models/backup-settings/trigger-pipeline/trigger-pipeline.component.ts index 2281264c9..6401a02b9 100644 --- a/frontend/src/app/projects/models/backup-settings/trigger-pipeline/trigger-pipeline.component.ts +++ b/frontend/src/app/projects/models/backup-settings/trigger-pipeline/trigger-pipeline.component.ts @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { NgIf, NgFor, AsyncPipe } from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component, Inject, OnInit } from '@angular/core'; import { FormControl, @@ -23,6 +23,7 @@ import { MatIcon } from '@angular/material/icon'; import { MatSlideToggle } from '@angular/material/slide-toggle'; import { MatTooltip } from '@angular/material/tooltip'; import { Router } from '@angular/router'; +import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; import { ToastService } from 'src/app/helpers/toast/toast.service'; import { PipelineRun, @@ -40,13 +41,10 @@ import { @Component({ selector: 'app-trigger-pipeline', templateUrl: './trigger-pipeline.component.html', - styleUrls: ['./trigger-pipeline.component.css'], standalone: true, imports: [ - NgIf, MatIconAnchor, MatIcon, - NgFor, MatRipple, FormsModule, ReactiveFormsModule, @@ -56,6 +54,7 @@ import { MatSlideToggle, MatTooltip, AsyncPipe, + NgxSkeletonLoaderModule, ], }) export class TriggerPipelineComponent implements OnInit { diff --git a/frontend/src/app/projects/models/backup-settings/trigger-pipeline/trigger-pipeline.stories.ts b/frontend/src/app/projects/models/backup-settings/trigger-pipeline/trigger-pipeline.stories.ts index 791b0c785..ecf2da816 100644 --- a/frontend/src/app/projects/models/backup-settings/trigger-pipeline/trigger-pipeline.stories.ts +++ b/frontend/src/app/projects/models/backup-settings/trigger-pipeline/trigger-pipeline.stories.ts @@ -88,7 +88,16 @@ export const PipelineOverview: Story = { providers: [ { provide: PipelineService, - useFactory: () => new MockPipelineService([pipeline, pipeline]), + useFactory: () => + new MockPipelineService([ + pipeline, + { + ...pipeline, + id: 2, + run_nightly: true, + include_commit_history: true, + }, + ]), }, ], }), 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 83ac5b361..48422e5cb 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 @@ -70,12 +70,13 @@

View diagrams

}" > } @else if (diagrams[diagram.uuid].content) { - + } } @else {
diff --git a/frontend/src/app/sessions/user-sessions-wrapper/active-sessions/file-browser-dialog/file-browser-dialog.component.html b/frontend/src/app/sessions/user-sessions-wrapper/active-sessions/file-browser-dialog/file-browser-dialog.component.html index c9ee9886f..09a1263e9 100644 --- a/frontend/src/app/sessions/user-sessions-wrapper/active-sessions/file-browser-dialog/file-browser-dialog.component.html +++ b/frontend/src/app/sessions/user-sessions-wrapper/active-sessions/file-browser-dialog/file-browser-dialog.component.html @@ -16,8 +16,8 @@

File browser

>
-