Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,55 +51,54 @@
@if (currentProjectService.id === project.id.toString()) {
<a
[href]="extendedUrl(null)"
class="spot-list--item-remove"
data-test-selector="op-header-project-select--item-remove-icon"
>
<svg
x-circle-icon
size="small"
></svg></a>
}
</a>
}
@if (project.disabled) {
<span
class="spot-list--item-action spot-list--item-action_disabled"
[ngClass]="{
'spot-list--item-action_active': (searchableProjectListService.selectedItemID$ | async) === project.id
}"
>
<span
class="spot-list--item-title spot-list--item-title_ellipse-text"
data-test-selector="op-header-project-select--item-disabled-title"
>
<span>{{ project.name }}</span>
@if (portfolioModelsEnabled) {
@switch (project._type) {
@case ('Portfolio') {
<span class="description">
<svg briefcase-icon size="xsmall" />
{{ this.I18n.t('js.include_workspaces.types.portfolio') }}
</span>
}
@case ('Program') {
<span class="description">
<svg versions-icon size="xsmall" />
{{ this.I18n.t('js.include_workspaces.types.program') }}
</span>
}
<svg x-circle-icon size="small" />
</a>
}
</a>
}
@if (project.disabled) {
<span
class="spot-list--item-action spot-list--item-action_disabled"
[ngClass]="{
'spot-list--item-action_active': (searchableProjectListService.selectedItemID$ | async) === project.id
}"
>
<span
class="spot-list--item-title spot-list--item-title_ellipse-text"
data-test-selector="op-header-project-select--item-disabled-title"
>
<span>{{ project.name }}</span>
@if (portfolioModelsEnabled) {
@switch (project._type) {
@case ('Portfolio') {
<span class="description">
<svg briefcase-icon size="xsmall" />
{{ this.I18n.t('js.include_workspaces.types.portfolio') }}
</span>
}
@case ('Program') {
<span class="description">
<svg versions-icon size="xsmall" />
{{ this.I18n.t('js.include_workspaces.types.program') }}
</span>
}
}
</span>
}
</span>
}
@if (project.children.length) {
<ul
op-header-project-select-list
[projects]="project.children"
[displayMode]="displayMode"
[favorited]="favorited"
[selected]="selected"
[searchText]="searchText"
></ul>
}
</li>
}
</span>
}
@if (project.children.length) {
<ul
op-header-project-select-list
[projects]="project.children"
[displayMode]="displayMode"
[favorited]="favorited"
[selected]="selected"
[searchText]="searchText"
></ul>
}
</li>
}
3 changes: 3 additions & 0 deletions frontend/src/app/spot/styles/sass/components/list.sass
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@
.description
@extend %autocomplete-description

&-remove
margin-left: $spot-spacing-0_5

&-action_disabled &-title
opacity: 0.5

Expand Down
Loading