mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
22 lines
577 B
TypeScript
22 lines
577 B
TypeScript
import { Component, Input, Output, EventEmitter } from "@angular/core";
|
|
import { Integration } from "../shared/models/integration";
|
|
|
|
@Component({
|
|
selector: 'my-integration',
|
|
templateUrl: './integration.component.html',
|
|
styleUrls: ['./integration.component.scss'],
|
|
})
|
|
export class IntegrationComponent {
|
|
|
|
@Input() integration: Integration;
|
|
@Output() updated: EventEmitter<any> = new EventEmitter();
|
|
|
|
constructor() {
|
|
}
|
|
|
|
public update(): void {
|
|
this.integration.isEnabled = !this.integration.isEnabled;
|
|
this.updated.emit();
|
|
}
|
|
}
|