This commit is contained in:
Peter Maquiran
2023-02-27 09:31:10 +01:00
parent 6e2669e52f
commit 4731b402df
87 changed files with 86 additions and 4253 deletions
@@ -42,23 +42,23 @@ export class AllProcessesPage implements OnInit {
) {
this.loggeduser = SessionStore.user;
window['all-process'] = this.updateAllProcess
window['all-process'] = () => {
if(window.location.href.includes('?processes=true')) {
this.updateAllProcess()
}
}
}
ngOnInit() {
this.updateAllProcess()
// this.loadAllProcesses();
this.updateAllProcess()
this.router.events.forEach((event) => {
if (event instanceof NavigationStart && event.url.startsWith('/home/gabinete-digital')) {
if (window.location.pathname.startsWith('/home/gabinete-digital')) {
this.refreshing();
} else {
// this.loadAllProcesses();
}
this.router.events.forEach((event) => {
if (event instanceof NavigationStart && event.url.startsWith('/home/gabinete-digital')) {
if (window.location.pathname.startsWith('/home/gabinete-digital')) {
this.refreshing();
}
});
}
});
}
doRefresh(event) {
+1 -1
View File
@@ -1,4 +1,4 @@
<div class="header-container">
<div class="header-container header-fix">
<div class="main-tab pb-10 ion-toolbar header-color">
<div class="mobile pt-20 d-flex div-top-header justify-space-between">
@@ -73,8 +73,8 @@ export class DespachosOptionsPage implements OnInit {
sendExpedienteToPending() {
const loader = this.toastService.loading()
this.popoverController.dismiss();
this.processes.SetTaskToPending(this.task.SerialNumber).subscribe(res=>{
this.toastService._successMessage()
this.processes.SetTaskToPending(this.task.SerialNumber).subscribe(res => {
this.toastService._successMessage("Processo enviado para pendestes")
loader.remove()
this.close();
@@ -255,7 +255,14 @@ export class NewPublicationPage implements OnInit {
try {
await this.publications.CreatePublication(this.folderId, this.publication).toPromise()
this.toastService._successMessage()
if(this.publicationTitle == '1') {
} else if (this.publicationTitle == '2') {
this.toastService._successMessage('Publicação criado')
} else if (this.publicationTitle == '3') {
this.toastService._successMessage('Publicação atualizada')
}
this.goBackToViewPublications.emit();
} catch (error) {
@@ -37,7 +37,7 @@
<img src="/assets/icon/icon-no-image.svg" alt="image">
</div>
<div class="post-description">
<p>{{publication.Message}}</p>
<pre class="text">{{publication.Message}}</pre>
</div>
</div>
</div>
@@ -50,7 +50,7 @@
<div class="post-data">{{publication.DatePublication | date: 'dd-MM-yy HH:mm'}}</div>
</div>
<div class="post-description">
<p>{{publication.Message}}</p>
<pre class="text">{{publication.Message}}</pre>
</div>
</div>
</ion-card-content>