Skip to content

Commit

Permalink
feat: show an icon in the project
Browse files Browse the repository at this point in the history
So they're marked as training.
  • Loading branch information
amolenaar committed Oct 24, 2023
1 parent 9900e9a commit d998ee5
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export class CreateProjectComponent implements OnInit, OnDestroy {
name: this.form.value.name!,
description: this.form.value.description!,
visibility: this.form.value.visibility! as ProjectVisibility,
type: 'general',
})
.subscribe((project) => {
this.toastService.showSuccess(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-->

<div *ngIf="pipelineRunService.pipelineRun$ | async">
<div class="header">
<div class="header flex-col">
<h1>
Logs for pipeline run
{{ (pipelineRunService.pipelineRun$ | async)?.id }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
~ SPDX-License-Identifier: Apache-2.0
-->
<div class="dialog">
<div class="header">
<div class="header flex-col">
<h2>View diagrams</h2>
<span
>Last update:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@
matRipple
class="mat-card-overview"
>
<div class="header">{{ project.name }}</div>
<div class="header flex-row">
<mat-icon class="mr-1" *ngIf="project.type === 'training'"
>school</mat-icon
>
<span class="">{{ project.name }}</span>
</div>
<div class="p-3">
<div>
<div *ngIf="project.description; else elseBlock">
Expand Down
1 change: 1 addition & 0 deletions frontend/src/app/projects/service/project.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export type PostProject = {
name: string;
description: string;
visibility: ProjectVisibility;
type: ProjectType;
};

export type PatchProject = Partial<PostProject> & {
Expand Down
1 change: 0 additions & 1 deletion frontend/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ Angular Material Card Styles
color: white;
border-radius: 5px 5px 0 0;
display: flex;
flex-direction: column;
padding: 10px 20px;
font-size: 1.5em;
}
Expand Down

0 comments on commit d998ee5

Please sign in to comment.