OpenSlides/client/src/app/site/assignments/services/assignment-poll-dialog.service.ts
2020-03-17 07:24:38 +01:00

23 lines
997 B
TypeScript

import { Injectable } from '@angular/core';
import { MatDialog } from '@angular/material';
import { CollectionStringMapperService } from 'app/core/core-services/collection-string-mapper.service';
import { BasePollDialogService } from 'app/core/ui-services/base-poll-dialog.service';
import { AssignmentPollDialogComponent } from 'app/site/assignments/components/assignment-poll-dialog/assignment-poll-dialog.component';
import { AssignmentPollService } from './assignment-poll.service';
import { ViewAssignmentPoll } from '../models/view-assignment-poll';
/**
* Subclassed to provide the right `PollService` and `DialogComponent`
*/
@Injectable({
providedIn: 'root'
})
export class AssignmentPollDialogService extends BasePollDialogService<ViewAssignmentPoll> {
protected dialogComponent = AssignmentPollDialogComponent;
public constructor(dialog: MatDialog, mapper: CollectionStringMapperService, service: AssignmentPollService) {
super(dialog, mapper, service);
}
}