-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CU-868a3neq0 fixed signalr issue fixed ui bug on call list
- Loading branch information
Showing
7 changed files
with
162 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<div class="bookings"> | ||
<ion-row> | ||
<ion-col size="2"> | ||
<ion-label class="call-number"> | ||
{{ call?.Number }} | ||
</ion-label> | ||
</ion-col> | ||
<ion-col size="10"> | ||
<ion-label class="call-name">{{ call?.Name }}</ion-label> | ||
</ion-col> | ||
</ion-row> | ||
<ion-row style="padding-bottom: 10px; border-bottom: 1px solid lightgray;"> | ||
<ion-col size="11"> | ||
<ion-label class="call-nature" [innerHtml]="call?.Nature"> | ||
</ion-label> | ||
</ion-col> | ||
</ion-row> | ||
<ion-row style="padding: 10px; border-bottom: 1px solid lightgray;"> | ||
<ion-col size="6"> | ||
<ion-label class="call-priority" [style.color]="getColor()">{{getPriorityName()}}</ion-label> | ||
<ion-label class="call-date-time">{{ getDate(call?.LoggedOn) }}</ion-label> | ||
<ion-label class="call-date-time">{{ call?.LoggedOnUtc | rgTimeAgoUtc }}</ion-label> | ||
</ion-col> | ||
<ion-col size="6"> | ||
<ion-label class="call-address">{{ call?.Address }}</ion-label> | ||
</ion-col> | ||
</ion-row> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
.bookings { | ||
width: 94%; | ||
margin-top: 20px; | ||
margin-left: 10px; | ||
margin-right: 10px; | ||
box-shadow: 0px 0px 10px 0px grey; | ||
border-radius: 5px; | ||
overflow: hidden; | ||
|
||
.call-name { | ||
display: block; | ||
font-size: 16px; | ||
text-align: right; | ||
overflow: hidden; | ||
} | ||
|
||
.call-nature { | ||
display: block; | ||
font-size: 12px; | ||
color: gray; | ||
text-align: left; | ||
} | ||
|
||
.call-number { | ||
font-size: 12px; | ||
white-space: nowrap; | ||
color: gray; | ||
text-align: left; | ||
} | ||
|
||
.call-address { | ||
font-size: 12px; | ||
text-align: left; | ||
} | ||
|
||
.call-priority { | ||
display: block; | ||
font-size: 16px; | ||
text-align: left; | ||
overflow: hidden; | ||
} | ||
|
||
.person-group { | ||
display: block; | ||
font-size: 14px; | ||
text-align: left; | ||
} | ||
|
||
.call-date-time { | ||
font-size: 12px; | ||
display: block; | ||
text-align: left; | ||
color: var(--ion-color-primary); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { Component, OnInit, Input, ChangeDetectionStrategy } from '@angular/core'; | ||
import { CallPriorityResultData, CallResultData, UtilsService } from '@resgrid/ngx-resgridlib'; | ||
|
||
@Component({ | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
selector: 'app-call-card-info', | ||
templateUrl: './call-info.component.html', | ||
styleUrls: ['./call-info.component.scss'], | ||
}) | ||
export class CallInfoComponent implements OnInit { | ||
@Input() call: CallResultData; | ||
@Input() priority: CallPriorityResultData; | ||
@Input() color: string; | ||
|
||
constructor(private utilsProvider: UtilsService) {} | ||
|
||
ngOnInit() {} | ||
|
||
getColor() { | ||
if (!this.call) { | ||
return 'gray'; | ||
} else if (this.call.CallId === '0') { | ||
return 'gray'; | ||
} else if (this.priority) { | ||
return this.priority.Color; | ||
} | ||
} | ||
|
||
getPriorityName() { | ||
if (!this.call) { | ||
return 'Normal'; | ||
} else if (this.call.CallId === '0') { | ||
return 'Normal'; | ||
} else if (this.priority) { | ||
return this.priority.Name; | ||
} | ||
|
||
return 'Normal'; | ||
} | ||
|
||
public getDate(date) { | ||
return this.utilsProvider.getDate(date); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters