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
15 changes: 8 additions & 7 deletions projects/v3/src/app/pages/home/home.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,11 @@
<div class="exp-header">
<h2 class="headline-2"
[innerHTML]="experience.name"></h2>

<div class="button-group-no-gap" *ngIf="projectBrief || showProjectHub">
<ion-button fill="clear"
size="small"
class="project-brief-btn"
*ngIf="projectBrief"
*ngIf="projectBrief?.id"
(click)="showProjectBrief()"
(keydown.enter)="showProjectBrief()"
(keydown.space)="showProjectBrief(); $event.preventDefault()"
Expand All @@ -65,12 +64,14 @@
(click)="openProjectBriefExternal()"
(keydown.enter)="openProjectBriefExternal()"
(keydown.space)="openProjectBriefExternal(); $event.preventDefault()"
title="Go to project brief"
aria-label="Go to project brief" i18n-aria-label>
title="Go to project hub"
aria-label="Go to project hub" i18n-aria-label>
<ion-icon name="open-outline"
slot="icon-only"
size="small"
aria-hidden="true"></ion-icon>
[slot]="projectBrief ? 'icon-only' : 'start'"
size="small"
aria-hidden="true"
></ion-icon>
<span i18n *ngIf="!projectBrief">Project-Hub</span>
</ion-button>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions projects/v3/src/app/pages/home/home.page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ ion-content.scrollable-desktop {
display: flex;
gap: 0;
align-items: center;
flex-basis: 100%;

ion-button {
margin: 0;
Expand Down
4 changes: 0 additions & 4 deletions projects/v3/src/app/pages/home/home.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,10 +474,6 @@ export class HomePage implements OnInit, OnDestroy, AfterViewChecked {
* @description opens project brief in external projecthub application with authentication token
*/
openProjectBriefExternal(): void {
if (!this.projectBrief) {
return;
}

const apikey = this.storageService.getUser().apikey;
const url = `${environment.projecthub}login?token=${apikey}`;
window.open(url, '_blank');
Expand Down