Commit 97de9197 authored by dev0tion's avatar dev0tion

Revert components to CSS

parent 2c30d23c
......@@ -3,7 +3,7 @@ import { Component, OnInit } from '@angular/core';
@Component({
selector: 'sidebar',
templateUrl: './sidebar.component.html',
styleUrls: ['./sidebar.component.scss']
styleUrls: ['./sidebar.component.css']
})
export class SidebarComponent implements OnInit {
......
......@@ -10,7 +10,7 @@ import { Subscription } from 'rxjs/Subscription';
@Component({
selector: 'status-bar',
templateUrl: './status-bar.component.html',
styleUrls: ['./status-bar.component.scss']
styleUrls: ['./status-bar.component.css']
})
export class StatusBarComponent implements OnInit {
......@@ -46,15 +46,15 @@ export class StatusBarComponent implements OnInit {
if(!this.isChainSynced) {
this.percentSynced = "syncing...";
}
}
else {
this.percentSyncedNumber = ((this.lastBlockSyncedHeight / this.chainTip) * 100);
if (this.percentSyncedNumber.toFixed(0) === "100" && this.lastBlockSyncedHeight != this.chainTip) {
this.percentSyncedNumber = 99;
}
this.percentSynced = this.percentSyncedNumber.toFixed(0) + "%";
}
this.percentSynced = this.percentSyncedNumber.toFixed(0) + "%";
}
}
},
error => {
......
......@@ -5,7 +5,7 @@ import { NgbModal, NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
@Component({
selector: 'transaction-details',
templateUrl: './transaction-details.component.html',
styleUrls: ['./transaction-details.component.scss']
styleUrls: ['./transaction-details.component.css']
})
export class TransactionDetailsComponent implements OnInit {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment