agendas order

This commit is contained in:
Peter Maquiran
2023-08-22 11:25:13 +01:00
parent e8adb78b56
commit 6f9eb09b1c
9 changed files with 73 additions and 20 deletions
@@ -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 {