It should be possible to search by pressing ENTER

This commit is contained in:
Peter Maquiran
2021-07-08 15:54:03 +01:00
parent c34d7b16d9
commit 7bd87bd725
4 changed files with 29 additions and 25 deletions
@@ -115,7 +115,7 @@ export class EventDetailModalPage implements OnInit {
setEventAttendees(newattendes: EventPerson[])
{
this.loadedEvent.Attendees = newattendes;
this.loadedEvent.Attendees = newattendes;
}
async deleteConfirm()
@@ -219,26 +219,26 @@ export class EventDetailModalPage implements OnInit {
navigateTo(ev){
this.route.navigate(['/home/events',ev]);
}
async openAttachments(){
const modal = await this.modalCtrl.create({
component: AttachmentsPage,
componentProps: {
eventId: this.pageId,
attachments: this.loadedEventAttachments
},
cssClass: 'attachments',
backdropDismiss: false
});
async openAttachments() {
const modal = await this.modalCtrl.create({
component: AttachmentsPage,
componentProps: {
eventId: this.pageId,
attachments: this.loadedEventAttachments
},
cssClass: 'attachments',
backdropDismiss: false
});
await modal.present();
await modal.present();
modal.onDidDismiss().then((data) => {
if (data['data'] != null)
{
let newattendees: EventPerson[] = data['data'];
this.loadedEvent.Attendees = newattendees;
}
});
modal.onDidDismiss().then((data) => {
if (data['data'] != null)
{
let newattendees: EventPerson[] = data['data'];
this.loadedEvent.Attendees = newattendees;
}
});
}
+2 -2
View File
@@ -7,11 +7,11 @@
<div class="d-flex search-input-container ion-justify-content-between" >
<div class="icon">
<button class="btn-no-color" (click)="basicSearch()">
<ion-icon class="icon-z" slot="end" name="search"></ion-icon>
<ion-icon class="icon-z" slot="end" name="search"></ion-icon>
</button>
</div>
<div class="input-text d-flex ion-align-items-center">
<ion-input [(ngModel)]='searchSubject' class="search-input" type="search" placeholder="Pesquisar"></ion-input>
<ion-input (keyup.enter)="basicSearch()" [(ngModel)]='searchSubject' class="search-input" type="search" placeholder="Pesquisar"></ion-input>
</div>
<div (click)="clearSearchInput()" class="d-flex align-center icon">
+1 -1
View File
@@ -41,7 +41,7 @@ export class HeaderPage implements OnInit {
let classs, showSearchInput, type;
if(window.innerWidth < 1366) {
classs = 'modal modal-width-100 modal-padding-top'
classs = 'modal modal-width-100'
showSearchInput = true
} else {
classs = 'modal modal-desktop desktop-search'
+5 -1
View File
@@ -19,5 +19,9 @@
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true
}
},
"include": [
"src/app/home/home.page.ts",
"src/app/services/notifications.service.ts"
]
}