UNPKG

soft-phone

Version:
36 lines 1.62 kB
import { Component } from '@angular/core'; import { PhoneService } from '../../../service/index'; import { CallState } from '../../index'; var SoftPhoneBodyComponent = /** @class */ (function () { function SoftPhoneBodyComponent(service) { this.service = service; } SoftPhoneBodyComponent.prototype.ngOnInit = function () { }; SoftPhoneBodyComponent.prototype.isDialOutboundOrForwarding = function () { if (this.service.status === CallState.DialPadForwarding || this.service.status === CallState.DialPadOutbound) { return true; } return false; }; SoftPhoneBodyComponent.prototype.displayPhone = function () { if (this.service.displayPhone) { return true; } return false; }; SoftPhoneBodyComponent.decorators = [ { type: Component, args: [{ selector: 'soft-phone-body', template: "\n\n\n <div *ngIf=\"displayPhone()\" style=\"width:290px ;height: 517px;border:1px black solid \" >\n <keypad *ngIf=\"isDialOutboundOrForwarding()\" [displayText]=\"service.displayText\" ></keypad>\n <recipient-detail *ngIf=\"!isDialOutboundOrForwarding()\" ></recipient-detail>\n </div>\n ", styles: ["\n\n "] },] }, ]; /** @nocollapse */ SoftPhoneBodyComponent.ctorParameters = function () { return [ { type: PhoneService, }, ]; }; return SoftPhoneBodyComponent; }()); export { SoftPhoneBodyComponent }; //# sourceMappingURL=soft-phone-body.component.js.map