improve publicações

This commit is contained in:
Peter Maquiran
2023-01-02 15:42:15 +01:00
parent 3e110c9e93
commit f7aae9aa00
7 changed files with 40 additions and 67 deletions
-3
View File
@@ -7,7 +7,6 @@
<!-- <ion-icon name="home"></ion-icon> -->
<ion-icon *ngIf="pathname != '/home/events'" class="nav-icon" src="assets/images/icons-nav-home.svg"></ion-icon>
<ion-icon *ngIf="pathname == '/home/events'" class="nav-icon" src="assets/images/nav-hover/icons-nav-home-active.svg"></ion-icon>
<!-- <ion-badge color="danger">{{toDayEventStorage.eventsList.length + expedienteGdStore.count}}</ion-badge> -->
<ion-label>Início</ion-label>
</ion-tab-button>
@@ -22,8 +21,6 @@
<!-- <ion-icon name="file-tray-stacked"></ion-icon> -->
<ion-icon *ngIf="pathname != '/home/gabinete-digital'" class="nav-icon" src="assets/images/icons-nav-gabinete-inactive.svg"></ion-icon>
<ion-icon *ngIf="pathname == '/home/gabinete-digital'" class="nav-icon" src="assets/images/nav-hover/icons-nav-gabinete-active.svg"></ion-icon>
<!-- <ion-badge color="danger" *ngIf="!p.userRole(['PR'])" >{{ documentCounterService.mdTotalDocument }}</ion-badge>
<ion-badge color="danger" *ngIf="p.userRole(['PR'])" >{{ documentCounterService.prTotalDocument }}</ion-badge> -->
<ion-label>Gabinete</ion-label>
</ion-tab-button>
+8 -14
View File
@@ -163,7 +163,7 @@ export class HomePage implements OnInit {
}
clearTabButtonSelection(){
clearTabButtonSelection() {
this.tabButton.home = false;
this.tabButton.agenda = false;
this.tabButton.gabinete = false;
@@ -179,13 +179,13 @@ export class HomePage implements OnInit {
else if(url == '/home/agenda'){
this.tabButton.agenda = true;
}
else if(url =='/home/gabinete-digital'){
else if(url =='/home/gabinete-digital') {
this.tabButton.gabinete = true;
}
else if(url =='/home/publications'){
else if(url =='/home/publications') {
this.tabButton.actions = true;
}
else if(url == '/home/chat'){
else if(url == '/home/chat') {
this.tabButton.chat = true;
}
else{
@@ -193,17 +193,12 @@ export class HomePage implements OnInit {
}
}
logDeviceInfo = async () => {
logDeviceInfo = async () => {
const info = await Device.getInfo();
};
get pathname(){
return window.location.pathname
}
get color() {
return '#797979'
get pathname() {
return window.location.pathname
}
updateList() {
@@ -266,5 +261,4 @@ export class HomePage implements OnInit {
this.sqliteservice.deleteAllTables();
}
}
}
+14
View File
@@ -0,0 +1,14 @@
onconnect = (ev) => {
const [port] = ev.ports;
port.onmessage = e => {
const [first, second] = e.data;
let sum = +first + +second;
if (isNaN(sum)) {
port.postMessage("Both inputs should be numbers");
}
else {
const workerResult = `Result: ${sum} `;
port.postMessage(workerResult);
}
};
};