-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#12 show 'not set' if address is 0x00
- Loading branch information
Showing
4 changed files
with
20 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export { ReadableEmptyValuePipe } from './readable-empty-value/readable-empty-value.pipe'; | ||
export { ReadableMethodParamPipe } from './readable-method-param/readable-method-param.pipe'; | ||
export { ReadableMethodSignPipe } from './readable-method-sign/readable-method-sign.pipe'; |
12 changes: 12 additions & 0 deletions
12
src/app/shared/pipes/readable-empty-value/readable-empty-value.pipe.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Pipe, PipeTransform } from '@angular/core'; | ||
|
||
@Pipe({ name: 'readableEmptyValue' }) | ||
export class ReadableEmptyValuePipe implements PipeTransform { | ||
|
||
transform(value: string) { | ||
let result = "No data"; | ||
if(value == "0x0000000000000000000000000000000000000000") result = "Not set"; | ||
return result; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters