Compare commits
2 Commits
c2822893ca
...
6ab20db473
Author | SHA1 | Date |
---|---|---|
HardiReady | 6ab20db473 | |
HardiReady | d4667a0736 |
|
@ -42,10 +42,10 @@ const parseWarLog = (lineArray, war) => {
|
||||||
|
|
||||||
const VEHICLE_BLACKLIST = [
|
const VEHICLE_BLACKLIST = [
|
||||||
'Prowler (Unbewaffnet)', 'Prowler (Bewaffnet)', 'Hunter',
|
'Prowler (Unbewaffnet)', 'Prowler (Bewaffnet)', 'Hunter',
|
||||||
'HEMTT Transporter', 'HEMTT Transporter (abgedeckt)', 'HEMTT SanitÀtsfahrzeug',
|
'HEMTT Transporter', 'HEMTT Transporter (abgedeckt)', 'HEMTT Sanitätsfahrzeug',
|
||||||
'Remote Designator [NATO]', 'UGV Stomper',
|
'Remote Designator [NATO]', 'UGV Stomper',
|
||||||
'Qilin (Unbewaffnet)', 'Qilin (Bewaffnet)', 'Ifrit',
|
'Qilin (Unbewaffnet)', 'Qilin (Bewaffnet)', 'Ifrit',
|
||||||
'Tempest-Transporter', 'Tempest-Transporter (abgedeckt)', 'Tempest SanitÀtsfahrzeug',
|
'Tempest-Transporter', 'Tempest-Transporter (abgedeckt)', 'Tempest Sanitätsfahrzeug',
|
||||||
'Remote Designator [CSAT]', 'UBF Saif',
|
'Remote Designator [CSAT]', 'UBF Saif',
|
||||||
'Quad Bike', 'HuntIR',
|
'Quad Bike', 'HuntIR',
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "opt-cc",
|
"name": "opt-cc",
|
||||||
"version": "1.8.1",
|
"version": "1.8.2",
|
||||||
"author": "Florian Hartwich <hardi@noarch.de>",
|
"author": "Florian Hartwich <hardi@noarch.de>",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import {Component, OnInit} from '@angular/core';
|
import {Component, OnDestroy, OnInit} from '@angular/core';
|
||||||
import {ActivatedRoute, Router} from '@angular/router';
|
import {ActivatedRoute, Router} from '@angular/router';
|
||||||
|
|
||||||
import {Fraction} from '../../utils/fraction.enum';
|
import {Fraction} from '../../utils/fraction.enum';
|
||||||
|
@ -14,7 +14,7 @@ import {Location} from '@angular/common';
|
||||||
templateUrl: './decoration-overview.component.html',
|
templateUrl: './decoration-overview.component.html',
|
||||||
styleUrls: ['./decoration-overview.component.css']
|
styleUrls: ['./decoration-overview.component.css']
|
||||||
})
|
})
|
||||||
export class DecorationOverviewComponent implements OnInit {
|
export class DecorationOverviewComponent implements OnInit, OnDestroy {
|
||||||
|
|
||||||
decorations: Decoration[];
|
decorations: Decoration[];
|
||||||
|
|
||||||
|
@ -54,6 +54,10 @@ export class DecorationOverviewComponent implements OnInit {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ngOnDestroy() {
|
||||||
|
this.bottomSheet.dismiss();
|
||||||
|
}
|
||||||
|
|
||||||
switchFraction(value: any) {
|
switchFraction(value: any) {
|
||||||
this.medals = this.decorations.filter(d => d.fraction === value && d.isMedal);
|
this.medals = this.decorations.filter(d => d.fraction === value && d.isMedal);
|
||||||
this.ribbons = this.decorations.filter(d => d.fraction === value && !d.isMedal);
|
this.ribbons = this.decorations.filter(d => d.fraction === value && !d.isMedal);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import {Component, OnInit} from '@angular/core';
|
import {Component, OnDestroy, OnInit} from '@angular/core';
|
||||||
import {ActivatedRoute, Router} from '@angular/router';
|
import {ActivatedRoute, Router} from '@angular/router';
|
||||||
import {Fraction} from '../../utils/fraction.enum';
|
import {Fraction} from '../../utils/fraction.enum';
|
||||||
import {Rank} from '../../models/model-interfaces';
|
import {Rank} from '../../models/model-interfaces';
|
||||||
|
@ -12,7 +12,7 @@ import {UserListSheetComponent} from '../user-list-sheet/user-list-sheet.compone
|
||||||
templateUrl: './rank-overview.component.html',
|
templateUrl: './rank-overview.component.html',
|
||||||
styleUrls: ['./rank-overview.component.css']
|
styleUrls: ['./rank-overview.component.css']
|
||||||
})
|
})
|
||||||
export class RankOverviewComponent implements OnInit {
|
export class RankOverviewComponent implements OnInit, OnDestroy {
|
||||||
|
|
||||||
ranksOpfor: Rank[];
|
ranksOpfor: Rank[];
|
||||||
|
|
||||||
|
@ -37,6 +37,10 @@ export class RankOverviewComponent implements OnInit {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ngOnDestroy() {
|
||||||
|
this.bottomSheet.dismiss();
|
||||||
|
}
|
||||||
|
|
||||||
selectRow(rank: Rank) {
|
selectRow(rank: Rank) {
|
||||||
this.bottomSheet.open(UserListSheetComponent, {data: {rank: rank}});
|
this.bottomSheet.open(UserListSheetComponent, {data: {rank: rank}});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue