Bugfix: Dashboard - Difficulty adjustment component. (#663)
* Add color to previous retarget. Add absolute number pipe. Change plus and minus signs to fa icons. Change Fee Estimate title to Transactions Fees. Set min and max difficulty adjustments. * Add projectID to cypress conf. * Change icon to fa-caret. * Remove unecessary icons.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { AbsolutePipe } from './absolute.pipe';
|
||||
|
||||
describe('AbsolutePipe', () => {
|
||||
it('create an instance', () => {
|
||||
const pipe = new AbsolutePipe();
|
||||
expect(pipe).toBeTruthy();
|
||||
});
|
||||
});
|
||||
8
frontend/src/app/shared/pipes/absolute/absolute.pipe.ts
Normal file
8
frontend/src/app/shared/pipes/absolute/absolute.pipe.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
|
||||
@Pipe({ name: 'absolute' })
|
||||
export class AbsolutePipe implements PipeTransform {
|
||||
transform(nr: number) {
|
||||
return Math.abs(nr);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user