mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
It should be possible to search by pressing ENTER
This commit is contained in:
@@ -115,7 +115,7 @@ export class EventDetailModalPage implements OnInit {
|
|||||||
|
|
||||||
setEventAttendees(newattendes: EventPerson[])
|
setEventAttendees(newattendes: EventPerson[])
|
||||||
{
|
{
|
||||||
this.loadedEvent.Attendees = newattendes;
|
this.loadedEvent.Attendees = newattendes;
|
||||||
}
|
}
|
||||||
|
|
||||||
async deleteConfirm()
|
async deleteConfirm()
|
||||||
@@ -219,26 +219,26 @@ export class EventDetailModalPage implements OnInit {
|
|||||||
navigateTo(ev){
|
navigateTo(ev){
|
||||||
this.route.navigate(['/home/events',ev]);
|
this.route.navigate(['/home/events',ev]);
|
||||||
}
|
}
|
||||||
async openAttachments(){
|
async openAttachments() {
|
||||||
const modal = await this.modalCtrl.create({
|
const modal = await this.modalCtrl.create({
|
||||||
component: AttachmentsPage,
|
component: AttachmentsPage,
|
||||||
componentProps: {
|
componentProps: {
|
||||||
eventId: this.pageId,
|
eventId: this.pageId,
|
||||||
attachments: this.loadedEventAttachments
|
attachments: this.loadedEventAttachments
|
||||||
},
|
},
|
||||||
cssClass: 'attachments',
|
cssClass: 'attachments',
|
||||||
backdropDismiss: false
|
backdropDismiss: false
|
||||||
});
|
});
|
||||||
|
|
||||||
await modal.present();
|
await modal.present();
|
||||||
|
|
||||||
modal.onDidDismiss().then((data) => {
|
modal.onDidDismiss().then((data) => {
|
||||||
if (data['data'] != null)
|
if (data['data'] != null)
|
||||||
{
|
{
|
||||||
let newattendees: EventPerson[] = data['data'];
|
let newattendees: EventPerson[] = data['data'];
|
||||||
this.loadedEvent.Attendees = newattendees;
|
this.loadedEvent.Attendees = newattendees;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,11 +7,11 @@
|
|||||||
<div class="d-flex search-input-container ion-justify-content-between" >
|
<div class="d-flex search-input-container ion-justify-content-between" >
|
||||||
<div class="icon">
|
<div class="icon">
|
||||||
<button class="btn-no-color" (click)="basicSearch()">
|
<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>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-text d-flex ion-align-items-center">
|
<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>
|
||||||
<div (click)="clearSearchInput()" class="d-flex align-center icon">
|
<div (click)="clearSearchInput()" class="d-flex align-center icon">
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ export class HeaderPage implements OnInit {
|
|||||||
|
|
||||||
let classs, showSearchInput, type;
|
let classs, showSearchInput, type;
|
||||||
if(window.innerWidth < 1366) {
|
if(window.innerWidth < 1366) {
|
||||||
classs = 'modal modal-width-100 modal-padding-top'
|
classs = 'modal modal-width-100'
|
||||||
showSearchInput = true
|
showSearchInput = true
|
||||||
} else {
|
} else {
|
||||||
classs = 'modal modal-desktop desktop-search'
|
classs = 'modal modal-desktop desktop-search'
|
||||||
|
|||||||
+5
-1
@@ -19,5 +19,9 @@
|
|||||||
"angularCompilerOptions": {
|
"angularCompilerOptions": {
|
||||||
"fullTemplateTypeCheck": true,
|
"fullTemplateTypeCheck": true,
|
||||||
"strictInjectionParameters": true
|
"strictInjectionParameters": true
|
||||||
}
|
},
|
||||||
|
"include": [
|
||||||
|
"src/app/home/home.page.ts",
|
||||||
|
"src/app/services/notifications.service.ts"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user