Put good responses first

develop
Nato Boram 2022-03-11 02:26:13 -05:00
parent 4115e3ee4b
commit 2e06007622
No known key found for this signature in database
GPG Key ID: 478E3C64BF88AFFA
2 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/), and this
- More information in the `package.json`. - More information in the `package.json`.
- Added ESLint - Added ESLint
- Added Prettier
- Put success reponses at the top of the list
### Changed ### Changed

View File

@ -87,7 +87,7 @@ export class PagesComponent implements OnInit, OnDestroy {
.pipe(takeUntil(this.destroy$)) .pipe(takeUntil(this.destroy$))
.subscribe( .subscribe(
(resp): void => { (resp): void => {
this.dataSource.data.push({ this.dataSource.data.unshift({
gateway: this.gatewayService.url(gateway, protocol, hashpath), gateway: this.gatewayService.url(gateway, protocol, hashpath),
message: resp.statusText, message: resp.statusText,
icon: this.getIcon(resp.status), icon: this.getIcon(resp.status),