mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
improve
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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,24 +184,17 @@ export class HeaderPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(this.isProfileOpen == false) {
|
const modal = await this.modalController.create({
|
||||||
|
component: ProfilePage,
|
||||||
|
cssClass: 'model profile-modal search-submodal',
|
||||||
|
componentProps: {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
await modal.present();
|
||||||
|
|
||||||
this.isProfileOpen = true;
|
modal.onDidDismiss().then(() => {
|
||||||
|
this.notificationLengthData()
|
||||||
const modal = await this.modalController.create({
|
})
|
||||||
component: ProfilePage,
|
|
||||||
cssClass: 'model profile-modal search-submodal',
|
|
||||||
componentProps: {
|
|
||||||
}
|
|
||||||
});
|
|
||||||
await modal.present();
|
|
||||||
|
|
||||||
modal.onDidDismiss().then(() => {
|
|
||||||
this.isProfileOpen = false;
|
|
||||||
this.notificationLengthData()
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user