Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

43 lines
1.1 KiB

/*
* Squidex Headless CMS
*
* @license
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/
// tslint:disable: component-selector
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
import { EventConsumerDto, EventConsumersState } from '@app/features/administration/internal';
@Component({
selector: '[sqxEventConsumer]',
styleUrls: ['./event-consumer.component.scss'],
templateUrl: './event-consumer.component.html',
changeDetection: ChangeDetectionStrategy.OnPush
})
export class EventConsumerComponent {
@Output()
public error = new EventEmitter();
@Input('sqxEventConsumer')
public eventConsumer: EventConsumerDto;
constructor(
public readonly eventConsumersState: EventConsumersState
) {
}
public start() {
this.eventConsumersState.start(this.eventConsumer);
}
public stop() {
this.eventConsumersState.stop(this.eventConsumer);
}
public reset() {
this.eventConsumersState.reset(this.eventConsumer);
}
}