Browse Source

Feature/various frontend improvements 2 (#140)

* Change buttons to links

* Update changelog
pull/141/head
Thomas 3 years ago
committed by GitHub
parent
commit
aa4206af0e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      CHANGELOG.md
  2. 5
      apps/client/src/app/pages/admin/admin-page.component.ts
  3. 8
      apps/client/src/app/pages/tools/tools-page.html

6
CHANGELOG.md

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
### Changed
- Changed the buttons to links (`<a>`) on the tools page
## 1.10.1 - 02.06.2021 ## 1.10.1 - 02.06.2021
### Fixed ### Fixed

5
apps/client/src/app/pages/admin/admin-page.component.ts

@ -80,7 +80,10 @@ export class AdminPageComponent implements OnInit {
addSuffix: true addSuffix: true
}); });
return distanceString === '0 seconds ago' ? 'just now' : distanceString; return distanceString === 'in 0 seconds' ||
distanceString === '0 seconds ago'
? 'just now'
: distanceString;
} }
return ''; return '';

8
apps/client/src/app/pages/tools/tools-page.html

@ -9,14 +9,14 @@
portfolio. portfolio.
</p> </p>
<p class="text-right"> <p class="text-right">
<button <a
color="primary" color="primary"
i18n i18n
mat-button mat-button
[routerLink]="['/tools', 'analysis']" [routerLink]="['/tools', 'analysis']"
> >
Open Analysis → Open Analysis →
</button> </a>
</p> </p>
</mat-card> </mat-card>
</div> </div>
@ -28,14 +28,14 @@
risks in your portfolio. risks in your portfolio.
</p> </p>
<p class="text-right"> <p class="text-right">
<button <a
color="primary" color="primary"
i18n i18n
mat-button mat-button
[routerLink]="['/tools', 'report']" [routerLink]="['/tools', 'report']"
> >
Open X-ray → Open X-ray →
</button> </a>
</p> </p>
</mat-card> </mat-card>
</div> </div>

Loading…
Cancel
Save