mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 05:45:50 +00:00
Merge branch 'developer' of https://bitbucket.org/equilibriumito/gabinete-digital into developer
This commit is contained in:
@@ -122,6 +122,7 @@ export class ViewPublicationsPage implements OnInit {
|
|||||||
if(error.status == '404'){
|
if(error.status == '404'){
|
||||||
this.error = 'Sem publicações disponíveis!';
|
this.error = 'Sem publicações disponíveis!';
|
||||||
this.publicationList= [];
|
this.publicationList= [];
|
||||||
|
this.publicationListStorage.add(folderId, this.publicationList)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.showLoader = false;
|
this.showLoader = false;
|
||||||
|
|||||||
@@ -113,7 +113,8 @@ export class ViewPublicationsPage implements OnInit {
|
|||||||
(error)=>{
|
(error)=>{
|
||||||
if(error.status == '404') {
|
if(error.status == '404') {
|
||||||
this.error = 'Sem publicações disponíveis!';
|
this.error = 'Sem publicações disponíveis!';
|
||||||
// this.publicationList = null;
|
this.publicationList= [];
|
||||||
|
this.publicationListStorage.add(folderId, this.publicationList)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.showLoader = false;
|
this.showLoader = false;
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ export class PublicationListService {
|
|||||||
return this._document[folderId]
|
return this._document[folderId]
|
||||||
}
|
}
|
||||||
|
|
||||||
add(folderId, document) {
|
add(folderId, document = []) {
|
||||||
this._document[folderId] = document
|
this._document[folderId] = document
|
||||||
|
|
||||||
setTimeout(()=> {
|
setTimeout(()=> {
|
||||||
|
|||||||
Reference in New Issue
Block a user