Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Callan003 committed Oct 30, 2020
1 parent b831dda commit 80c8407
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 8 deletions.
5 changes: 5 additions & 0 deletions src/app/pages/chat/chat.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,10 @@
</ion-button>
</ion-col>
</ion-row>
<ion-row *ngIf="alerts || driving">
<ion-col>
driving: {{overTheSpeedLimit}} alerts: {{alerts}}
</ion-col>
</ion-row>
</ion-toolbar>
</ion-footer>
2 changes: 2 additions & 0 deletions src/app/pages/chat/chat.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ export class ChatPage implements OnInit {
}
this.sendMessageToFirebase(false);
}
this.typingDnaRecorder.reset();
this.typingDnaRecorder.start();
}

async presentModal() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,24 @@
</div>

<div class="dialog-description">
<ion-list>
<ion-item>
<ion-label>Simulate Driving &nbsp; </ion-label>
<ion-icon name='car-sport' [color]="driving ? 'danger': 'dark'"></ion-icon>
<ion-toggle color="danger" (ionChange)="driving = !driving" [checked]="driving"></ion-toggle>
<ion-checkbox color="danger" (ionChange)="changeDriving($event)" [checked]="driving" ></ion-checkbox>
</ion-item>
<ion-item>
<ion-label>Show alerts &nbsp;</ion-label>
<ion-icon name="warning" [color]="alerts ? 'danger': 'dark'"></ion-icon>
<ion-toggle color="danger" (ionChange)="alerts = !alerts" [checked]="alerts"></ion-toggle>
<ion-checkbox color="danger" (ionChange)="changeAlerts($event)" [checked]="alerts"></ion-checkbox>
</ion-item>
<ion-item>
<ion-label>Quality (1-3)&nbsp;</ion-label>
<ion-input name="quality" (ionChange)="changeQuality($event)" text-right type="number" color="danger" max="3" min="1" [value]="quality">
</ion-input>
<ion-icon name="finger-print" class="rm15" slot="end"></ion-icon>
<ion-icon name="finger-print" class="rm05" slot="end"></ion-icon>
</ion-item>
</ion-list>

</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
}
.dialog-description{
margin: 0 16px;
ion-toggle{
ion-checkbox{
vertical-align: middle;
margin: 0 10px;
}
ion-icon{
font-size: 25px;
Expand All @@ -24,8 +25,8 @@
}
}

.rm15{
margin-right: 15px !important;
.rm05{
margin-right: 5px !important;
}

.dialog-actions{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export class SettingsModalComponent {
@Input() alerts: boolean;
@Input() driving: boolean;
@Input() quality: number;
ngquality = 2;

constructor(private modalController: ModalController) { }

Expand All @@ -31,4 +30,11 @@ export class SettingsModalComponent {
this.quality = $event['detail'].value;
}
}

changeDriving($event: any) {
this.driving = $event['detail'].checked;
}
changeAlerts($event: any) {
this.alerts = $event['detail'].checked;
}
}
2 changes: 1 addition & 1 deletion src/theme/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
text-align: center;
}
.settings-modal .modal-wrapper{
height: 260px;
height: 275px;
width: 90%;
margin: 0 16px;
border-radius: 8px;
Expand Down

0 comments on commit 80c8407

Please sign in to comment.