Add button for edit campaign
parent
2cd7541ca6
commit
6381c1ca86
|
@ -91,7 +91,6 @@ export class CampaignPlayerDetailComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
private initDataArray() {
|
private initDataArray() {
|
||||||
|
|
||||||
this.graphData.forEach(dataSet => {
|
this.graphData.forEach(dataSet => {
|
||||||
const killObj = {
|
const killObj = {
|
||||||
name: dataSet.label,
|
name: dataSet.label,
|
||||||
|
|
|
@ -11,13 +11,18 @@
|
||||||
<accordion *ngFor="let campaign of campaigns; let isFirstRow=first">
|
<accordion *ngFor="let campaign of campaigns; let isFirstRow=first">
|
||||||
<accordion-group [isOpen]="isFirstRow">
|
<accordion-group [isOpen]="isFirstRow">
|
||||||
<div accordion-heading>
|
<div accordion-heading>
|
||||||
{{campaign.title}}
|
<span (click)="editCampaign(campaign); $event.stopPropagation()" title="Bearbeiten"
|
||||||
<span class="pull-right">▼</span>
|
style="color: whitesmoke; padding-top: 0; padding-right: 10px;"
|
||||||
<span (click)="deleteCampaign(campaign); $event.stopPropagation()" title="Löschen"
|
class="glyphicon glyphicon-edit trash pull-left"
|
||||||
style="color: whitesmoke; padding-top: 0; padding-right: 20px;"
|
|
||||||
class="glyphicon glyphicon-trash trash pull-right"
|
|
||||||
*ngIf="loginService.hasPermission(3)">
|
*ngIf="loginService.hasPermission(3)">
|
||||||
</span>
|
</span>
|
||||||
|
<span (click)="deleteCampaign(campaign); $event.stopPropagation()" title="Löschen"
|
||||||
|
style="color: whitesmoke; padding-top: 0; padding-right: 10px;"
|
||||||
|
class="glyphicon glyphicon-trash trash pull-left"
|
||||||
|
*ngIf="loginService.hasPermission(3)">
|
||||||
|
</span>
|
||||||
|
{{campaign.title}}
|
||||||
|
<span class="pull-right">▼</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="fade-in list-entry top-list-entry"
|
<div class="fade-in list-entry top-list-entry"
|
||||||
|
|
|
@ -99,4 +99,7 @@ export class WarListComponent implements OnInit {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
editCampaign(selectCampaign) {
|
||||||
|
this.router.navigate([{outlets: {'right': ['overview', selectCampaign._id]}}], {relativeTo: this.route});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue