determine input value type in finder
parent
6ac4fc5a66
commit
b3b166d283
|
@ -34,7 +34,16 @@ export class TraceOverviewComponent implements OnInit, OnDestroy {
|
|||
// set background image css
|
||||
this.document.getElementById('right').setAttribute('style', CSSHelpers.getBackgroundCSS('../assets/bg.jpg'));
|
||||
|
||||
console.log(typeof this.traceItem);
|
||||
|
||||
if (this.traceItem.hasOwnProperty('isMedal')) {
|
||||
// Decoration
|
||||
const decorationItem = <Decoration> this.traceItem
|
||||
console.log("DECORATION");
|
||||
} else if (this.traceItem.hasOwnProperty('level')) {
|
||||
// Rank
|
||||
const rankItem = <Rank> this.traceItem
|
||||
console.log("RANK");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue