mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Improve responsiveness and add doc to task
This commit is contained in:
@@ -41,17 +41,32 @@ export class HeaderPage implements OnInit {
|
||||
|
||||
async openSearch() {
|
||||
|
||||
let classs;
|
||||
let classs, showSearchInput, type;
|
||||
if(window.innerWidth < 1366) {
|
||||
classs = 'modal modal-width-100 modal-padding-top'
|
||||
showSearchInput = true
|
||||
} else {
|
||||
classs = 'modal modal-width-100 modal-padding-top modal-desktop-shadow modal-desktop-remove-background'
|
||||
showSearchInput = false
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(window.location.pathname == '/home/agenda') {
|
||||
type = "Agenda"
|
||||
} else if (window.location.pathname =='/home/gabinete-digital') {
|
||||
type = "AccoesPresidenciais & ArquivoDespachoElect"
|
||||
|
||||
} else if (window.location.pathname == '/home/publications') {
|
||||
type = "AccoesPresidenciais"
|
||||
}
|
||||
|
||||
const modal = await this.modalController.create({
|
||||
component: SearchPage,
|
||||
cssClass: classs,
|
||||
componentProps: {
|
||||
type: 'AccoesPresidenciais & ArquivoDespachoElect',
|
||||
showSearchInput: showSearchInput
|
||||
}
|
||||
});
|
||||
return await modal.present();
|
||||
|
||||
Reference in New Issue
Block a user