This commit is contained in:
Peter Maquiran
2022-10-11 14:53:48 +01:00
parent c2e9770153
commit a2fdfca19d
3 changed files with 14 additions and 26 deletions
+1 -1
View File
@@ -235,7 +235,7 @@ export class ProfilePage implements OnInit {
this.isProfileOpen = true; this.isProfileOpen = true;
const modal = await this.modalController.create({ const modal = await this.modalController.create({
component: ProfilePage, component: EditProfilePage,
cssClass: 'model profile-modal search-submodal', cssClass: 'model profile-modal search-submodal',
componentProps: { componentProps: {
} }
@@ -69,16 +69,15 @@ export class NewGroupPage implements OnInit{
this.showDuration = event.detail.checked; this.showDuration = event.detail.checked;
if(event.detail.checked){ if(event.detail.checked) {
this.thedate = new Date(); this.thedate = new Date();
} }
else{ else {
this.thedate = ''; this.thedate = '';
} }
} }
close() { close() {
// this.addGroupMessage.emit();
if(this.link) { if(this.link) {
this.RouteService.goBack(); this.RouteService.goBack();
this.dataService.set("link", false); this.dataService.set("link", false);
+1 -12
View File
@@ -34,7 +34,7 @@ export class HeaderPage implements OnInit {
production = environment.production production = environment.production
environment = environment environment = environment
isProfileOpen = false canOpenSearch = false
constructor( constructor(
private router: Router, private router: Router,
@@ -51,7 +51,6 @@ export class HeaderPage implements OnInit {
this.loggeduser = SessionStore.user; this.loggeduser = SessionStore.user;
router.events.subscribe((val) => { router.events.subscribe((val) => {
this.showSearch = false; this.showSearch = false;
this.isProfileOpen = false
this.canOpenSearch = true; this.canOpenSearch = true;
}); });
@@ -110,7 +109,6 @@ export class HeaderPage implements OnInit {
} }
} }
canOpenSearch = true
async openSearch() { async openSearch() {
let classs, showSearchInput, type; let classs, showSearchInput, type;
@@ -122,8 +120,6 @@ export class HeaderPage implements OnInit {
showSearchInput = false showSearchInput = false
} }
if (window.location.pathname.startsWith('/home/agenda')) { if (window.location.pathname.startsWith('/home/agenda')) {
type = "Agenda" type = "Agenda"
} else if (window.location.pathname.startsWith('/home/gabinete-digital')) { } else if (window.location.pathname.startsWith('/home/gabinete-digital')) {
@@ -188,10 +184,6 @@ export class HeaderPage implements OnInit {
} }
if(this.isProfileOpen == false) {
this.isProfileOpen = true;
const modal = await this.modalController.create({ const modal = await this.modalController.create({
component: ProfilePage, component: ProfilePage,
cssClass: 'model profile-modal search-submodal', cssClass: 'model profile-modal search-submodal',
@@ -201,12 +193,9 @@ export class HeaderPage implements OnInit {
await modal.present(); await modal.present();
modal.onDidDismiss().then(() => { modal.onDidDismiss().then(() => {
this.isProfileOpen = false;
this.notificationLengthData() this.notificationLengthData()
}) })
}
} }