Skip to content

Commit dadb1a4

Browse files
committed
Linter fixes
1 parent 5179b88 commit dadb1a4

5 files changed

Lines changed: 8 additions & 11 deletions

File tree

client/src/app/site/pages/meetings/modules/poll/base/base-poll-dialog.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ export abstract class BasePollDialogComponent extends BaseUiComponent implements
369369
}
370370
}
371371

372-
private updateDialogVoteForm(data: Partial<ViewPoll>): void {
372+
private updateDialogVoteForm(_data: Partial<ViewPoll>): void {
373373
/*
374374
const update: any = {
375375
options: {},

client/src/app/site/pages/meetings/modules/poll/services/poll.service/poll.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export abstract class PollService {
6666
.subscribe(is => (this._defaultPollLiveVotingEnabled = is));
6767
}
6868

69-
public generateTableData(poll: PollData): PollTableData[] {
69+
public generateTableData(_poll: PollData): PollTableData[] {
7070
return [];
7171
/*
7272
const tableData: PollTableData[] = poll.options
@@ -185,7 +185,7 @@ export abstract class PollService {
185185
}
186186
}
187187

188-
private getGlobalVoteKeys(poll: PollData): VotingResult[] {
188+
private getGlobalVoteKeys(_poll: PollData): VotingResult[] {
189189
return [
190190
/*
191191
{
@@ -402,7 +402,7 @@ export abstract class PollService {
402402
/**
403403
* Extracts yes-no-abstain such as valid, invalids and totals from Poll and PollData-Objects
404404
*/
405-
protected getResultFromPoll(poll: PollData, key: CalculablePollKey): (number | undefined)[] {
405+
protected getResultFromPoll(_poll: PollData, _key: CalculablePollKey): (number | undefined)[] {
406406
// return (poll ? [...poll.options, poll.global_option] : []).map(option => (option ? option[key] : undefined));
407407
return [];
408408
}

client/src/app/site/pages/meetings/pages/agenda/services/agenda-pdf-catalog-export.service/agenda-pdf-catalog-export.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ export class AgendaPdfCatalogExportService {
450450
// poll table rows
451451
let optionIndex = 0;
452452
for (const option of poll.options) {
453-
let votesForOption: string | number = ``;
453+
const votesForOption: string | number = ``;
454454
// TODO: Readd votes for option
455455
if (poll.stateHasVotes && useVoteWeight) {
456456
// votesForOption = option.votes.map(v => parseFloat(`${v.weight}`)).reduce((a, b) => a + b, 0);

client/src/app/site/pages/meetings/pages/assignments/modules/assignment-poll/components/assignment-poll-detail-content/assignment-poll-detail-content.component.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
ViewChildren
1010
} from '@angular/core';
1111
import { TranslateService } from '@ngx-translate/core';
12-
import { auditTime, combineLatest, filter, iif, map, NEVER, startWith, switchMap } from 'rxjs';
1312
import { Permission } from 'src/app/domain/definitions/permission';
1413
import { PollData } from 'src/app/domain/models/poll/generic-poll';
1514
import {
@@ -25,7 +24,6 @@ import { PollService } from 'src/app/site/pages/meetings/modules/poll/services/p
2524
import { OperatorService } from 'src/app/site/services/operator.service';
2625
import { ThemeService } from 'src/app/site/services/theme.service';
2726

28-
import { ViewPoll } from '../../../../../polls';
2927
import { ViewAssignment } from '../../../../view-models';
3028
import { AssignmentPollService } from '../../services/assignment-poll.service';
3129

@@ -35,7 +33,7 @@ import { AssignmentPollService } from '../../services/assignment-poll.service';
3533
styleUrls: [`./assignment-poll-detail-content.component.scss`],
3634
standalone: false
3735
})
38-
export class AssignmentPollDetailContentComponent implements OnInit, AfterViewInit {
36+
export class AssignmentPollDetailContentComponent implements AfterViewInit {
3937
private _poll: PollData;
4038

4139
public readonly hasLoaded = new Deferred<boolean>();
@@ -176,7 +174,7 @@ export class AssignmentPollDetailContentComponent implements OnInit, AfterViewIn
176174
private themeService: ThemeService
177175
) {}
178176

179-
public ngOnInit(): void {
177+
public _ngOnInit(): void {
180178
/*
181179
combineLatest([
182180
this.poll.options$,
@@ -247,7 +245,7 @@ export class AssignmentPollDetailContentComponent implements OnInit, AfterViewIn
247245
return votingResult.filter(result => result && this.voteFitsMethod(result));
248246
}
249247

250-
public getVoteAmount(vote: VotingResult, row: PollTableData): number {
248+
public getVoteAmount(_vote: VotingResult, _row: PollTableData): number {
251249
/*
252250
vote.amount = vote.amount ?? 0;
253251
if (this.isMethodN && [`user`, `list`].includes(row.class)) {

client/src/app/site/pages/meetings/pages/assignments/modules/assignment-poll/components/assignment-poll-dialog/assignment-poll-dialog.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { MatButtonModule } from '@angular/material/button';
33
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
44
import { MatTabsModule } from '@angular/material/tabs';
55
import { TranslatePipe } from '@ngx-translate/core';
6-
import { Ids } from 'src/app/domain/definitions/key-types';
76
import { BaseModel } from 'src/app/domain/models/base/base-model';
87
import { PollVisibility, VoteValue } from 'src/app/domain/models/poll';
98
import { PollCreatePayload, VoteApiService } from 'src/app/gateways/vote-api.service';

0 commit comments

Comments
 (0)