File tree 5 files changed +13
-12
lines changed
components/checkin-details
5 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 34
34
</ ion-header >
35
35
< ion-content >
36
36
< checkin-details [checkin] ="checkin " [person] ="person "
37
- [canSend ] ="checkin.canRespond(person) " [canResend] ="checkin.canResend(person) "
38
- (sendClicked ) ="respondCheckin($event) " (resendClicked) ="resendCheckin($event) " *ngIf ="checkin "> </ checkin-details >
37
+ [canRespond ] ="checkin.canRespond(person) " [canResend] ="checkin.canResend(person) "
38
+ (respondClicked ) ="respondCheckin($event) " (resendClicked) ="resendCheckin($event) " *ngIf ="checkin "> </ checkin-details >
39
39
</ ion-content >
40
40
</ ion-menu >
41
41
< ion-nav main #content #rootNavController swipeBackEnabled ="false " [root] ="rootPage "> </ ion-nav >
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ <h1>{{checkin.message}}</h1>
7
7
< ion-badge color ="waiting " *ngIf ="checkin.waiting_count > 0 "> {{checkin.waiting_count}}</ ion-badge >
8
8
</ ion-item >
9
9
< ion-item text-wrap color ="white ">
10
- < button ion-button text-only item-left clear color ="primary " tappable *ngIf ="hasSendClicked && checkin.canRespond(person) " (click) ="onSendClicked ($event) "> Respond</ button >
10
+ < button ion-button text-only item-left clear color ="primary " tappable *ngIf ="hasRespondClicked && checkin.canRespond(person) " (click) ="onRespondClicked ($event) "> Respond</ button >
11
11
< button ion-button text-only item-right clear color ="primary " tappable *ngIf ="hasResendClicked && checkin.canResend(person) " (click) ="onResendClicked($event) "> Resend</ button >
12
12
</ ion-item >
13
13
</ ion-list >
Original file line number Diff line number Diff line change @@ -16,30 +16,30 @@ export class CheckinDetailsComponent {
16
16
person :Person ;
17
17
18
18
@Input ( )
19
- canSend :boolean = false ;
19
+ canRespond :boolean = false ;
20
20
21
21
@Input ( )
22
22
canResend :boolean = false ;
23
23
24
24
@Output ( )
25
- sendClicked = new EventEmitter ( ) ;
25
+ respondClicked = new EventEmitter ( ) ;
26
26
27
27
@Output ( )
28
28
resendClicked = new EventEmitter ( ) ;
29
29
30
- hasSendClicked :boolean = false ;
30
+ hasRespondClicked :boolean = false ;
31
31
hasResendClicked :boolean = false ;
32
32
33
33
constructor ( ) {
34
34
}
35
35
36
36
ngOnInit ( ) {
37
- this . hasSendClicked = this . sendClicked && this . sendClicked . observers . length > 0 ;
37
+ this . hasRespondClicked = this . respondClicked && this . respondClicked . observers . length > 0 ;
38
38
this . hasResendClicked = this . resendClicked && this . resendClicked . observers . length > 0 ;
39
39
}
40
40
41
- onSendClicked ( event :any ) {
42
- this . sendClicked . emit ( ) ;
41
+ onRespondClicked ( event :any ) {
42
+ this . respondClicked . emit ( ) ;
43
43
}
44
44
45
45
onResendClicked ( event :any ) {
Original file line number Diff line number Diff line change 16
16
< ion-refresher-content > </ ion-refresher-content >
17
17
</ ion-refresher >
18
18
< checkin-details [checkin] ="checkin " [person] ="person "
19
- [canSend ] ="checkin.canRespond(person) " [canResend] ="checkin.canResend(person) "
20
- (sendClicked ) ="respondCheckin($event) " (resendClicked) ="resendCheckin($event) "> </ checkin-details >
19
+ [canRespond ] ="checkin.canRespond(person) " [canResend] ="checkin.canResend(person) "
20
+ (respondClicked ) ="respondCheckin($event) " (resendClicked) ="resendCheckin($event) " *ngIf =" checkin && person "> </ checkin-details >
21
21
</ ion-content >
Original file line number Diff line number Diff line change @@ -417,14 +417,15 @@ export class CheckinListPage extends BasePage {
417
417
}
418
418
419
419
private showCheckinDetails ( checkin :Checkin , event :any = null ) {
420
- if ( this . platform . width ( ) > this . WIDTH_LARGE ) {
420
+ if ( document . body . clientWidth > this . WIDTH_LARGE ) {
421
421
// this.showModal(CheckinDetailsPage, {
422
422
// organization: this.organization,
423
423
// person: this.person,
424
424
// checkin: checkin,
425
425
// checkin_id: checkin.id,
426
426
// modal: true
427
427
// });
428
+ // this.selected = checkin;
428
429
this . events . publish ( 'checkin:details' , {
429
430
checkin : checkin
430
431
} ) ;
You can’t perform that action at this time.
0 commit comments