mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
agendas order
This commit is contained in:
@@ -21,7 +21,7 @@ import { NgxImageCompressService } from "ngx-image-compress";
|
||||
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
||||
import { PublicationFolderService } from 'src/app/store/publication-folder.service';
|
||||
|
||||
|
||||
import { RouteService } from 'src/app/services/route.service';
|
||||
const IMAGE_DIR = 'stored-images';
|
||||
|
||||
interface LocalFile {
|
||||
@@ -90,7 +90,8 @@ export class NewPublicationPage implements OnInit {
|
||||
private loadingCtrl: LoadingController,
|
||||
public imageCompress: NgxImageCompressService,
|
||||
private httpErrorHandle: HttpErrorHandle,
|
||||
public PublicationFolderService: PublicationFolderService
|
||||
public PublicationFolderService: PublicationFolderService,
|
||||
private RouteService: RouteService,
|
||||
) {
|
||||
|
||||
this.publicationType = this.navParams.get('publicationType');
|
||||
@@ -231,7 +232,7 @@ export class NewPublicationPage implements OnInit {
|
||||
this.httpErrorHandle.httpsSucessMessagge('Publicação Editada')
|
||||
console.log({response})
|
||||
|
||||
this.close();
|
||||
this.RouteService.goBack()
|
||||
} catch (error) {
|
||||
this.httpErrorHandle.httpStatusHandle(error)
|
||||
} finally {
|
||||
@@ -260,7 +261,7 @@ export class NewPublicationPage implements OnInit {
|
||||
this.httpErrorHandle.httpsSucessMessagge('Criar publicação')
|
||||
console.log({response})
|
||||
|
||||
this.close();
|
||||
this.RouteService.goBack()
|
||||
} catch (error) {
|
||||
this.httpErrorHandle.httpStatusHandle(error)
|
||||
} finally {
|
||||
@@ -286,7 +287,7 @@ export class NewPublicationPage implements OnInit {
|
||||
const response = await this.publications.UpdatePublication(this.publication.ProcessId, this.publication).toPromise()
|
||||
this.httpErrorHandle.httpsSucessMessagge('Publicação Editada')
|
||||
console.log({response})
|
||||
this.close();
|
||||
this.RouteService.goBack()
|
||||
} catch (error) {
|
||||
this.httpErrorHandle.httpStatusHandle(error)
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user