OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Add blankslate/no results
Oliver Güntherc688390d97e2
diff --git a/config/locales/js-en.yml b/config/locales/js-en.ymlindex 574a24440e3..c21e4e8a6e1 100644--- a/config/locales/js-en.yml+++ b/config/locales/js-en.yml@@ -1370,6 +1370,10 @@ en:group: "The group is now a part of %{project}. Meanwhile you can already plan with that group and assign work packages for instance."next_button: "Continue"+ favorite_projects:+ no_results: "You have no favorite projects"+ no_results_subtext: "Add one or multiple projects as favorite through their overview or in a project list."+include_projects:toggle_title: "Include projects"title: "Projects"diff --git a/frontend/src/app/shared/components/header-project-select/header-project-select.component.html b/frontend/src/app/shared/components/header-project-select/header-project-select.component.htmlindex 6455d79ce87..f49101fde9f 100644--- a/frontend/src/app/shared/components/header-project-select/header-project-select.component.html+++ b/frontend/src/app/shared/components/header-project-select/header-project-select.component.html@@ -39,6 +39,7 @@*ngIf="projects$ | async as projects"><spot-text-field+ *ngIf="displayMode !== 'favored' || (favorites$ | async)?.length > 0"[placeholder]="text.search_placeholder"[(ngModel)]="searchableProjectListService.searchText"[ngModelOptions]="{standalone: true}"@@ -56,7 +57,7 @@<ng-container *ngIf="(loading$ | async) === false; else loadingTemplate"><ul- *ngIf="projects.length > 0; else noResultsTemplate"+ *ngIf="(displayMode === 'all' && projects.length > 0) || (displayMode === 'favored' && (favorites$ | async).length > 0); else noResultsTemplate"op-header-project-select-list[ngClass]="{ 'spot-list_active': textFieldFocused }"[projects]="projects"@@ -69,8 +70,23 @@></ul><ng-template #noResultsTemplate>- <span class="op-project-list-modal--no-results">- {{text.no_results}}+ <div *ngIf="displayMode === 'favored'"+ class="op-header-project-select--no-favorites"+ >+ <svg+ star-icon+ size="medium"+ ></svg>+ <p>+ <strong [textContent]="text.no_favorites"></strong>+ <br/>+ <span class="op-header-project-select--no-favorites-subtext"+ [textContent]="text.no_favorites_subtext"></span>+ </p>+ </div>+ <span *ngIf="displayMode === 'all'"+ class="op-project-list-modal--no-results">+ {{ text.no_results }}</span></ng-template></ng-container>diff --git a/frontend/src/app/shared/components/header-project-select/header-project-select.component.sass b/frontend/src/app/shared/components/header-project-select/header-project-select.component.sassindex c1f68ae82f0..24562bc4345 100644--- a/frontend/src/app/shared/components/header-project-select/header-project-select.component.sass+++ b/frontend/src/app/shared/components/header-project-select/header-project-select.component.sass@@ -1,2 +1,13 @@.op-header-project-selectmax-width: 100%++ &--no-favorites+ display: flex+ text-align: center+ flex-direction: column+ align-items: center+ margin: 0 1.25rem++ &--no-favorites-subtext+ font-size: 0.9rem+ color: var(--fgColor-muted, var(--color-fg-subtle))diff --git a/frontend/src/app/shared/components/header-project-select/header-project-select.component.ts b/frontend/src/app/shared/components/header-project-select/header-project-select.component.tsindex 881a7ba1b83..fc91492ec98 100644--- a/frontend/src/app/shared/components/header-project-select/header-project-select.component.ts+++ b/frontend/src/app/shared/components/header-project-select/header-project-select.component.ts@@ -125,6 +125,8 @@ export class OpHeaderProjectSelectComponent extends UntilDestroyedMixin {public text = {all: this.I18n.t('js.label_all_uppercase'),favored: this.I18n.t('js.label_favorites'),+ no_favorites: this.I18n.t('js.favorite_projects.no_results'),+ no_favorites_subtext: this.I18n.t('js.favorite_projects.no_results_subtext'),project: {singular: this.I18n.t('js.label_project'),plural: this.I18n.t('js.label_project_plural'),