Skip to content

Commit 91892fe

Browse files
committed
Format the header project select list component file.
1 parent 772e2c4 commit 91892fe

File tree

1 file changed

+46
-47
lines changed

1 file changed

+46
-47
lines changed

frontend/src/app/shared/components/header-project-select/list/header-project-select-list.component.html

Lines changed: 46 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -51,55 +51,54 @@
5151
@if (currentProjectService.id === project.id.toString()) {
5252
<a
5353
[href]="extendedUrl(null)"
54+
class="spot-list--item-remove"
5455
data-test-selector="op-header-project-select--item-remove-icon"
55-
>
56-
<svg
57-
x-circle-icon
58-
size="small"
59-
></svg></a>
60-
}
61-
</a>
62-
}
63-
@if (project.disabled) {
64-
<span
65-
class="spot-list--item-action spot-list--item-action_disabled"
66-
[ngClass]="{
67-
'spot-list--item-action_active': (searchableProjectListService.selectedItemID$ | async) === project.id
68-
}"
6956
>
70-
<span
71-
class="spot-list--item-title spot-list--item-title_ellipse-text"
72-
data-test-selector="op-header-project-select--item-disabled-title"
73-
>
74-
<span>{{ project.name }}</span>
75-
@if (portfolioModelsEnabled) {
76-
@switch (project._type) {
77-
@case ('Portfolio') {
78-
<span class="description">
79-
<svg briefcase-icon size="xsmall" />
80-
{{ this.I18n.t('js.include_workspaces.types.portfolio') }}
81-
</span>
82-
}
83-
@case ('Program') {
84-
<span class="description">
85-
<svg versions-icon size="xsmall" />
86-
{{ this.I18n.t('js.include_workspaces.types.program') }}
87-
</span>
88-
}
57+
<svg x-circle-icon size="small" />
58+
</a>
59+
}
60+
</a>
61+
}
62+
@if (project.disabled) {
63+
<span
64+
class="spot-list--item-action spot-list--item-action_disabled"
65+
[ngClass]="{
66+
'spot-list--item-action_active': (searchableProjectListService.selectedItemID$ | async) === project.id
67+
}"
68+
>
69+
<span
70+
class="spot-list--item-title spot-list--item-title_ellipse-text"
71+
data-test-selector="op-header-project-select--item-disabled-title"
72+
>
73+
<span>{{ project.name }}</span>
74+
@if (portfolioModelsEnabled) {
75+
@switch (project._type) {
76+
@case ('Portfolio') {
77+
<span class="description">
78+
<svg briefcase-icon size="xsmall" />
79+
{{ this.I18n.t('js.include_workspaces.types.portfolio') }}
80+
</span>
81+
}
82+
@case ('Program') {
83+
<span class="description">
84+
<svg versions-icon size="xsmall" />
85+
{{ this.I18n.t('js.include_workspaces.types.program') }}
86+
</span>
8987
}
9088
}
91-
</span>
89+
}
9290
</span>
93-
}
94-
@if (project.children.length) {
95-
<ul
96-
op-header-project-select-list
97-
[projects]="project.children"
98-
[displayMode]="displayMode"
99-
[favorited]="favorited"
100-
[selected]="selected"
101-
[searchText]="searchText"
102-
></ul>
103-
}
104-
</li>
105-
}
91+
</span>
92+
}
93+
@if (project.children.length) {
94+
<ul
95+
op-header-project-select-list
96+
[projects]="project.children"
97+
[displayMode]="displayMode"
98+
[favorited]="favorited"
99+
[selected]="selected"
100+
[searchText]="searchText"
101+
></ul>
102+
}
103+
</li>
104+
}

0 commit comments

Comments
 (0)