-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CU-86881rz5m Trying to fix call notes issue.
- Loading branch information
Showing
8 changed files
with
348 additions
and
42 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
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
50 changes: 50 additions & 0 deletions
50
src/app/features/calls/modals/notes-modal/modal-notes.page.html
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,50 @@ | ||
<ion-content [fullscreen]="true"> | ||
<ion-fab vertical="top" horizontal="end" slot="fixed"> | ||
<ion-fab-button size="small" color="light" (click)="dismissModal()"> | ||
<ion-icon name="close-outline"></ion-icon> | ||
</ion-fab-button> | ||
</ion-fab> | ||
<div class="container safe-area"> | ||
<span> | ||
<h3 style="padding-left: 10px;">Call Notes</h3> | ||
</span> | ||
<div class="ion-padding" style="height: 94%;"> | ||
<perfect-scrollbar> | ||
<div *ngIf="!(callsState$ | async).callNotes || (callsState$ | async).callNotes.length <= 0"> | ||
<cta-panel [topIcon]="'information-circle'" [title]="'callNotesPage.ctaPanel.title' | translate" [details]="'callNotesPage.ctaPanel.details' | translate" | ||
[extraDetails]="'callNotesPage.ctaPanel.extraDetails' | translate" [btnLabel]="'callNotesPage.ctaPanel.buttonLabel' | translate" [hideButton]="true"></cta-panel> | ||
</div> | ||
|
||
<div class="list_div" *ngFor="let note of (callsState$ | async).callNotes;"> | ||
<!--<img class="user_image bg_image" [src]="getAvatarUrl(note.UserId)" onerror="this.onerror=null;this.src='assets/images/defaultProfile.png';">--> | ||
<div class="detail"> | ||
<ion-label class="username">{{note.FullName}}</ion-label> | ||
<span> | ||
<ion-label class="light">{{note.Note}}</ion-label> | ||
<ion-label class="time">{{note.TimestampFormatted}}</ion-label> | ||
</span> | ||
</div> | ||
</div> | ||
</perfect-scrollbar> | ||
</div> | ||
</div> | ||
</ion-content> | ||
<ion-footer class="footer"> | ||
<div style="display: inherit;" class="footer_div"> | ||
<form (ngSubmit)="saveNote()" [formGroup]="callNotesFormData"> | ||
<ion-grid> | ||
<ion-row> | ||
<ion-col size="10" size-lg> | ||
<ion-input type="text" placeholder="Enter Note..." formControlName="message" [ngClass]="{'is-invalid': isSavingNote && callNotesFormData.errors}"> | ||
</ion-input> | ||
</ion-col> | ||
<ion-col size="2" size-sm style="text-align: right;"> | ||
<ion-button type="submit" style="text-align: right;"> | ||
<ion-icon name="save-outline"></ion-icon> | ||
</ion-button> | ||
</ion-col> | ||
</ion-row> | ||
</ion-grid> | ||
</form> | ||
</div> | ||
</ion-footer> |
182 changes: 182 additions & 0 deletions
182
src/app/features/calls/modals/notes-modal/modal-notes.page.scss
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,182 @@ | ||
|
||
.mainLogo { | ||
margin-bottom: 5px; | ||
display: block; | ||
width: 90%; | ||
max-width: 500px; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
|
||
|
||
.more-button { | ||
--border-radius: 0%; | ||
--border-width: 0px; | ||
--padding-start: 0px; | ||
--padding-end: 0px; | ||
} | ||
|
||
.button-group { | ||
.col { | ||
&:first-child:not(:last-child) { | ||
padding-right: 0; | ||
.button { | ||
border-top-right-radius: 0; | ||
border-bottom-right-radius: 0; | ||
} | ||
} | ||
&:not(:first-child):not(:last-child) { | ||
padding-right: 0; | ||
padding-left: 0; | ||
.button { | ||
border-radius: 0; | ||
} | ||
} | ||
&:last-child:not(:first-child) { | ||
padding-left: 0; | ||
.button { | ||
border-top-left-radius: 0; | ||
border-bottom-left-radius: 0; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.notifications-badge { | ||
position: absolute; | ||
top: -3px; | ||
right: -18px; | ||
border-radius: 100%; | ||
} | ||
|
||
.call-details { | ||
padding-top: 5px; | ||
} | ||
.call-details .row { | ||
padding: 15px 0; | ||
border-top: solid 1px #eee; | ||
} | ||
.call-details .col { | ||
padding: 0; | ||
} | ||
.call-details .col-100 { | ||
width: 100%; | ||
} | ||
.call-details-breakline { | ||
padding: 15px 0; | ||
border-top: solid 1px #eee; | ||
} | ||
.call-details-breakline .call-details-label { | ||
margin-bottom: 10px; | ||
} | ||
.call-details-label { | ||
color: #777; | ||
font-size: 13px; | ||
} | ||
.call-details-content { | ||
font-size: 14px; | ||
color: #000; | ||
font-weight: 400; | ||
} | ||
.find-location { | ||
padding: 10px 10px 0; | ||
} | ||
.find-location .button { | ||
margin-bottom: 0; | ||
} | ||
.notopmargin { | ||
margin-top: 0 !important; | ||
} | ||
.save-footer { | ||
height: 64px; | ||
background-color: rgba(255, 255, 255, 0.7); | ||
} | ||
.save-footer .button { | ||
margin: 0 !important; | ||
} | ||
.l-map .scroll, | ||
.l-map .map-content { | ||
height: 100%; | ||
} | ||
|
||
.list_div { | ||
display: flex; | ||
align-items: center; | ||
.user_image { | ||
height: 50px; | ||
width: 50px; | ||
border-radius: 100%; | ||
background-position: top; | ||
min-width: 50px; | ||
min-height: 50px; | ||
} | ||
|
||
.detail { | ||
padding-left: 15px; | ||
width: 100%; | ||
padding: 12px; | ||
border-bottom: 1px solid lightgray; | ||
margin-bottom: 5px; | ||
position: relative; | ||
.username { | ||
font-weight: 600; | ||
// font-size: 15px; | ||
margin-bottom: 5px; | ||
} | ||
|
||
span { | ||
display: flex; | ||
|
||
ion-icon { | ||
font-size: 18px; | ||
margin-right: 10px; | ||
color: gray; | ||
} | ||
|
||
.active { | ||
color: #33b7f1; | ||
} | ||
.light { | ||
color: gray; | ||
font-size: 14px; | ||
} | ||
|
||
.time { | ||
color: gray; | ||
font-size: 13px; | ||
position: absolute; | ||
top: 16px; | ||
right: 0; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.footer_div { | ||
display: flex; | ||
position: sticky; | ||
bottom: 0; | ||
justify-content: space-between; | ||
align-items: center; | ||
background-color: dimgrey; | ||
|
||
ion-input { | ||
border: 1px solid lightgray; | ||
--padding-start: 8px; | ||
position: relative; | ||
} | ||
} | ||
|
||
.chat_div{ | ||
position: relative; | ||
margin-left: 5px; | ||
} | ||
|
||
.user_image{ | ||
height: 50px; | ||
width: 50px; | ||
border-radius: 100%; | ||
background-position: top; | ||
min-width: 50px; | ||
min-height: 50px; | ||
} |
Oops, something went wrong.