Browse Source
Add config file in app/ Use config value currentCurrency in explorerCurrency pipeprometheus-integration
2 changed files with 5 additions and 1 deletions
@ -0,0 +1,3 @@ |
|||||
|
export class Config { |
||||
|
static currentCurrency = 'XSN'; |
||||
|
} |
@ -1,10 +1,11 @@ |
|||||
import { Pipe, PipeTransform } from '@angular/core'; |
import { Pipe, PipeTransform } from '@angular/core'; |
||||
|
import { Config } from '../config'; |
||||
|
|
||||
@Pipe({ |
@Pipe({ |
||||
name: 'explorerCurrency' |
name: 'explorerCurrency' |
||||
}) |
}) |
||||
export class ExplorerCurrencyPipe implements PipeTransform { |
export class ExplorerCurrencyPipe implements PipeTransform { |
||||
transform(currency: any): string { |
transform(currency: any): string { |
||||
return `${ currency } XSN`; |
return `${ currency } ${ Config.currentCurrency }`; |
||||
} |
} |
||||
} |
} |
||||
|
Loading…
Reference in new issue