determine input value type in finder

pull/43/head
HardiReady 2018-07-21 12:20:43 +02:00
parent 6ac4fc5a66
commit b3b166d283
1 changed files with 10 additions and 1 deletions

View File

@ -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");
}
};