mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
Merge branch 'developer' of bitbucket.org:equilibriumito/gabinete-digital into feature/websocket
This commit is contained in:
@@ -60,6 +60,13 @@ export class HomePage implements OnInit {
|
||||
showAttendees: false,
|
||||
showAttendeeModal: false
|
||||
}
|
||||
tabButton = {
|
||||
home: false,
|
||||
agenda: false,
|
||||
gabinete: false,
|
||||
actions: false,
|
||||
chat: false,
|
||||
}
|
||||
eventToaprove: any = {
|
||||
back: false,
|
||||
serialNumber: "",
|
||||
@@ -167,11 +174,42 @@ export class HomePage implements OnInit {
|
||||
}
|
||||
|
||||
myWorker.postMessage('ali'); */
|
||||
this.clearTabButtonSelection();
|
||||
}
|
||||
|
||||
clearTabButtonSelection(){
|
||||
this.tabButton.home = false;
|
||||
this.tabButton.agenda = false;
|
||||
this.tabButton.gabinete = false;
|
||||
this.tabButton.actions = false;
|
||||
this.tabButton.chat = false;
|
||||
}
|
||||
|
||||
selectedTab(url?:string){
|
||||
this.clearTabButtonSelection();
|
||||
if(url =='/home/events'){
|
||||
this.tabButton.home = true;
|
||||
}
|
||||
else if(url == '/home/agenda'){
|
||||
this.tabButton.agenda = true;
|
||||
}
|
||||
else if(url =='/home/gabinete-digital'){
|
||||
this.tabButton.gabinete = true;
|
||||
}
|
||||
else if(url =='/home/publications'){
|
||||
this.tabButton.actions = true;
|
||||
}
|
||||
else if(url == '/home/chat'){
|
||||
this.tabButton.chat = true;
|
||||
}
|
||||
else{
|
||||
this.clearTabButtonSelection();
|
||||
}
|
||||
}
|
||||
|
||||
logDeviceInfo = async () => {
|
||||
const info = await Device.getInfo();
|
||||
|
||||
|
||||
console.log('Device info',info);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user