mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
change button
This commit is contained in:
@@ -16,7 +16,7 @@ import { ChangeProfileService } from './change-profile.service';
|
||||
})
|
||||
export class PublicationsService {
|
||||
|
||||
|
||||
|
||||
|
||||
authheader = {};
|
||||
loggeduser: LoginUserRespose;
|
||||
@@ -31,7 +31,7 @@ export class PublicationsService {
|
||||
this.changeProfileService.registerCallback(() => {
|
||||
this.setHeader()
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
setHeader () {
|
||||
@@ -42,8 +42,8 @@ export class PublicationsService {
|
||||
|
||||
GetPublicationFolderList(){
|
||||
const geturl = environment.apiURL + 'presidentialActions';
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
};
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
}
|
||||
@@ -51,7 +51,7 @@ export class PublicationsService {
|
||||
GetPresidentialAction(id:any){
|
||||
const geturl = environment.apiURL + 'presidentialActions/'+id;
|
||||
|
||||
let options = {
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
};
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
@@ -60,7 +60,7 @@ export class PublicationsService {
|
||||
UpdatePresidentialAction(body:any) {
|
||||
const geturl = environment.apiURL + 'presidentialActions';
|
||||
|
||||
let options = {
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
};
|
||||
return this.http.put<any>(`${geturl}`, body, options);
|
||||
@@ -68,7 +68,7 @@ export class PublicationsService {
|
||||
|
||||
CreatePublicationFolder(body:any){
|
||||
const geturl = environment.apiURL + 'presidentialActions';
|
||||
let options = {
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
};
|
||||
return this.http.post<any>(`${geturl}`, body, options)
|
||||
@@ -76,20 +76,20 @@ export class PublicationsService {
|
||||
|
||||
UpdatePublicationFolder(body:any) {
|
||||
const geturl = environment.apiURL + 'presidentialActions';
|
||||
|
||||
let options = {
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
};
|
||||
|
||||
|
||||
return this.http.put<any>(`${geturl}`, body, options).toPromise().then(res =>{
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
DeletePresidentialAction(id:any){
|
||||
const geturl = environment.apiURL + 'presidentialActions/'+id;
|
||||
|
||||
let options = {
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
};
|
||||
return this.http.delete<any>(`${geturl}`, options);
|
||||
@@ -101,7 +101,7 @@ export class PublicationsService {
|
||||
|
||||
params = params.set("folderId", folder);
|
||||
|
||||
let options = {
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
@@ -115,7 +115,7 @@ export class PublicationsService {
|
||||
|
||||
params = params.set("folderId", id);
|
||||
|
||||
let options = {
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
@@ -129,13 +129,13 @@ export class PublicationsService {
|
||||
|
||||
params = params.set("folderId", id);
|
||||
|
||||
let options = {
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.get<number[]>(`${geturl}`, options)
|
||||
}
|
||||
|
||||
|
||||
|
||||
GetPublicationById( publicationId:any){
|
||||
const geturl = environment.apiURL + 'presidentialActions/posts/'+ publicationId;
|
||||
@@ -143,7 +143,7 @@ export class PublicationsService {
|
||||
|
||||
params = params.set("id", publicationId);
|
||||
|
||||
let options = {
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
@@ -156,22 +156,22 @@ export class PublicationsService {
|
||||
|
||||
params = params.set("id", publicationId);
|
||||
|
||||
let options = {
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
}
|
||||
|
||||
|
||||
// my own tries
|
||||
|
||||
GetPublicationByIdNext( publicationId:any){
|
||||
let geturl = environment.apiURL + 'presidentialActions/'+ publicationId + '/posts/ids';
|
||||
let params = new HttpParams();
|
||||
|
||||
params = params.set("folderId", publicationId);
|
||||
params = params.set("folderId", publicationId);
|
||||
|
||||
let options = {
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
/* params: params */
|
||||
};
|
||||
@@ -181,7 +181,7 @@ GetPublicationByIdNext( publicationId:any){
|
||||
return true
|
||||
}else{
|
||||
const navigation = this.router.getCurrentNavigation()
|
||||
|
||||
|
||||
|
||||
if(navigation){
|
||||
geturl = navigation.extractedUrl.toString()
|
||||
@@ -198,7 +198,7 @@ GetIdsPublicationNext(id:any){
|
||||
|
||||
params = params.set("id", id);
|
||||
|
||||
let options = {
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
@@ -206,13 +206,13 @@ GetIdsPublicationNext(id:any){
|
||||
var search = this.http.get<any>(`${geturl}`, options).subscribe(
|
||||
res => {
|
||||
res.this.activatedRoute.snapshot.queryParams.get('returnto') || '/posts'
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
)
|
||||
|
||||
return search
|
||||
|
||||
|
||||
}
|
||||
|
||||
//my last tries
|
||||
@@ -222,7 +222,7 @@ GetIdsPublicationNext(id:any){
|
||||
const geturl = environment.apiURL + 'presidentialActions/'+folderId+'/v2/posts';
|
||||
let params = new HttpParams();
|
||||
params = params.set("folderId", folderId);
|
||||
let options = {
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
/* params: params */
|
||||
};
|
||||
@@ -233,11 +233,19 @@ GetIdsPublicationNext(id:any){
|
||||
const geturl = environment.apiURL + 'presidentialActions/'+folderId+'/posts';
|
||||
let params = new HttpParams();
|
||||
params = params.set("folderId", folderId);
|
||||
let options = {
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
/* params: params */
|
||||
};
|
||||
|
||||
|
||||
|
||||
body.Files = body.Files.map( e => ({
|
||||
FileBase64: e.FileBase64,
|
||||
FileExtension: e.FileExtension,
|
||||
OriginalFileName: 'foto'
|
||||
}))
|
||||
|
||||
return this.http.put<any>(`${geturl}`, body, options)
|
||||
}
|
||||
|
||||
@@ -246,7 +254,7 @@ GetIdsPublicationNext(id:any){
|
||||
let params = new HttpParams();
|
||||
params = params.set("folderId", folderId);
|
||||
params = params.set("id", publicationId);
|
||||
let options = {
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
/* params: params */
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user