{{ category.Name }}
{{ category.Qtd }}
diff --git a/src/app/pages/search/search.page.ts b/src/app/pages/search/search.page.ts
index 5cf1d67a2..47847ce54 100644
--- a/src/app/pages/search/search.page.ts
+++ b/src/app/pages/search/search.page.ts
@@ -704,6 +704,7 @@ export class SearchPage implements OnInit {
}
+ TodosCategory = true
async filterDocList(categoryName:string){
// show all category
@@ -716,6 +717,27 @@ export class SearchPage implements OnInit {
}
this.showCategory = categoryName;
+
+ for(let category of this.searchCategories) {
+ if(category['Active']) {
+ this.TodosCategory = false
+ return false
+ }
+ }
+
+ this.TodosCategory = true
+
+ }
+
+
+ noFilter() {
+ this.TodosCategory = true
+ let n = 0
+ for(let category of this.searchCategories) {
+ this.searchCategories[n]['Active'] = false
+ n++
+ }
+ this.showSearchDocuments = this.searchDocuments;
}
diff --git a/src/app/services/chat/chat-system.service.ts b/src/app/services/chat/chat-system.service.ts
index 0cbe52090..37a5d0d16 100644
--- a/src/app/services/chat/chat-system.service.ts
+++ b/src/app/services/chat/chat-system.service.ts
@@ -320,13 +320,13 @@ export class ChatSystemService {
this.defaultSubtribe(id)
}
- this.RochetChatConnectorService.streamNotifyLogged().then((subscription=>{
+ this.RochetChatConnectorService.streamNotifyLogged().then((subscription => {
console.log(subscription)
}))
- // this.RochetChatConnectorService.subStreamNotifyUser().then((subscription=>{
- // console.log(subscription)
- // }))
+ this.RochetChatConnectorService.subStreamMessageUser().then((subscription => {
+ console.log(subscription)
+ }))
}
/**
@@ -622,7 +622,7 @@ export class ChatSystemService {
return !roomData.fname
}
- getUsers = () =>{
+ getUsers = () => {
return this.users
}
diff --git a/src/app/services/chat/rochet-chat-connector.service.ts b/src/app/services/chat/rochet-chat-connector.service.ts
index 19bb9ae42..c4832f22b 100644
--- a/src/app/services/chat/rochet-chat-connector.service.ts
+++ b/src/app/services/chat/rochet-chat-connector.service.ts
@@ -466,6 +466,34 @@ export class RochetChatConnectorService {
}
+ subStreamMessageUser(param?: any) {
+
+ const requestId = uuidv4()
+
+ let message = {
+ msg: "sub",
+ id: requestId,
+ name: "stream-notify-user",
+ params:[
+ `${SessionStore.user.ChatData.data.userId}/message`,
+ param
+ ]
+ }
+
+
+ this.ws.send({message, requestId})
+
+ return new Promise((resolve, reject) => {
+ this.ws.registerCallback({type:'Onmessage', funx:(message)=>{
+ if(message.id == requestId ) { // same request send
+ resolve(message)
+ return true
+ }
+ }})
+ });
+
+ }
+
receiveStreamNotifyRoom(funx: Function) {
this.ws.registerCallback({
diff --git a/src/app/shared/agenda/edit-event-to-approve/edit-event-to-approve.page.ts b/src/app/shared/agenda/edit-event-to-approve/edit-event-to-approve.page.ts
index c913efd2b..9aa8aff42 100644
--- a/src/app/shared/agenda/edit-event-to-approve/edit-event-to-approve.page.ts
+++ b/src/app/shared/agenda/edit-event-to-approve/edit-event-to-approve.page.ts
@@ -45,7 +45,7 @@ export class EditEventToApprovePage implements OnInit {
public endMinDate = new Date(new Date().getTime() + 15 * 60000);
public maxDate: any;
public stepHour = 1;
- public stepMinute = 5;
+ public stepMinute = 15;
public stepSecond = 5;
public dateControlStart = new FormControl(moment("DD MM YYYY hh"));
public dateControlEnd = new FormControl(moment("DD MM YYYY hh"));
diff --git a/src/app/shared/gabinete-digital/edit-event-to-approve/edit-event.page.ts b/src/app/shared/gabinete-digital/edit-event-to-approve/edit-event.page.ts
index 86e1b0ea0..2d658e336 100644
--- a/src/app/shared/gabinete-digital/edit-event-to-approve/edit-event.page.ts
+++ b/src/app/shared/gabinete-digital/edit-event-to-approve/edit-event.page.ts
@@ -47,7 +47,7 @@ export class EditEventToApproveComponent implements OnInit {
public endMinDate = new Date(new Date().getTime() + 15 * 60000);
public maxDate: any;
public stepHour = 1;
- public stepMinute = 5;
+ public stepMinute = 15;
public stepSecond = 5;
recurringTypes: any;
selectedRecurringType: any;
diff --git a/src/app/shared/popover/chat-options-popover/chat-options-popover.page.html b/src/app/shared/popover/chat-options-popover/chat-options-popover.page.html
index 95f5df98b..9dbe98acd 100644
--- a/src/app/shared/popover/chat-options-popover/chat-options-popover.page.html
+++ b/src/app/shared/popover/chat-options-popover/chat-options-popover.page.html
@@ -11,7 +11,8 @@
-
+
+
diff --git a/src/app/shared/publication/edit-action/edit-action.page.ts b/src/app/shared/publication/edit-action/edit-action.page.ts
index 95d10dd6b..148a679fa 100644
--- a/src/app/shared/publication/edit-action/edit-action.page.ts
+++ b/src/app/shared/publication/edit-action/edit-action.page.ts
@@ -25,7 +25,7 @@ export class EditActionPage implements OnInit {
public endMinDate = new Date(new Date().getTime() + 15 * 60000);
public maxDate: any;
public stepHour = 1;
- public stepMinute = 5;
+ public stepMinute = 15;
public stepSecond = 5;
public dateControlStart = new FormControl(moment("DD MM YYYY hh"));
public dateControlEnd = new FormControl(moment("DD MM YYYY hh"));
diff --git a/src/app/shared/publication/new-action/new-action.page.html b/src/app/shared/publication/new-action/new-action.page.html
index 9f60cc61b..abe2e7b7d 100644
--- a/src/app/shared/publication/new-action/new-action.page.html
+++ b/src/app/shared/publication/new-action/new-action.page.html
@@ -47,7 +47,7 @@
[(ngModel)]="folder.DateBegin"
[disabled]="disabled"
>
-