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
16 changes: 1 addition & 15 deletions src/app/shared/layout/header.component.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
<mat-toolbar color="primary" style="position: sticky; position: -webkit-sticky; top: 0; z-index: 1000">
<div class="toolbar-wrapper">
<div class="left">
<button
*ngIf="isBackButtonShown()"
mat-icon-button
class="mat-toolbar mat-primary back-button"
style="transform: scale(0.9)"
(click)="goBack()"
>
<mat-icon>arrow_back_ios</mat-icon>
</button>
<a
class="mat-toolbar mat-primary"
style="text-decoration: none"
[routerLink]="viewService.isRepoSet() ? viewService.currentView : null"
>WATcher v{{ this.getVersion() }}</a
>
<div class="mat-toolbar mat-primary">WATcher v{{ this.getVersion() }}</div>
<div *ngIf="viewService.isRepoSet()" style="margin-left: 20px">
<button mat-button [matMenuTriggerFor]="menu">
<span class="header-main-text">
Expand Down
8 changes: 0 additions & 8 deletions src/app/shared/layout/header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,6 @@ export class HeaderComponent implements OnInit {
return ViewDescription[openView];
}

goBack() {
if (this.prevUrl === `/${this.viewService.currentView}/issues/new`) {
this.router.navigateByUrl(this.viewService.currentView);
} else {
this.location.back();
}
}

viewBrowser() {
const encoded_filter_params = this.filtersService.getEncodedFilter();
window.open('https://github.com/'.concat(this.githubService.getRepoURL()).concat('/issues?q=').concat(encoded_filter_params));
Expand Down