import { Component , EventEmitter } from '@angular/core' ; import { Session } from '../../../services/session' ; @ Component ( { selector : 'm-modal-signup-on-action' , inputs : [ 'open' , 'action' , 'display' , 'overrideOnboarding' ] , outputs : [ 'closed' ] , template : `
    <m-modal-signup
      open="true"
      [display]="display"
      [overrideOnboarding]="overrideOnboarding"
      subtitle="You need to have a channel in order to {{ action }}"
      i18n-subtitle="@@MODALS__SIGNUP__ON_ACTION_SUBTITLE"
      *ngIf="open"
    ></m-modal-signup>
  ` , } ) export class SignupOnActionModal { open : boolean = false ; action : string = '' ; closed : EventEmitter < any > = new EventEmitter ( ) ; display : string = 'register' ; overrideOnboarding : boolean = false ; constructor ( public session ) { } close ( ) { this . open = false ; this . closed . next ( true ) ; } }