Skip to content
Snippets Groups Projects
Commit 1ac66438 authored by Jérémie BRISON's avatar Jérémie BRISON
Browse files

Merge branch 'dev' into feat/post-details

parents 28d48960 05edbec1
No related branches found
No related tags found
3 merge requests!103Recette,!102Dev,!89Feat/post details
......@@ -17,14 +17,18 @@ export class ClaimStructureComponent implements OnInit {
}
public acceptDemand(demand: DemandAttachment): void {
this.adminService.acceptStructureClaim(demand.userEmail, demand.structureId).subscribe((data) => {
this.demandsAttachment = data;
});
this.adminService
.acceptStructureClaim(demand.userEmail, demand.structureId, demand.structureName)
.subscribe((data) => {
this.demandsAttachment = data;
});
}
public refuseDemand(demand: DemandAttachment): void {
this.adminService.refuseStructureClaim(demand.userEmail, demand.structureId).subscribe((data) => {
this.demandsAttachment = data;
});
this.adminService
.refuseStructureClaim(demand.userEmail, demand.structureId, demand.structureName)
.subscribe((data) => {
this.demandsAttachment = data;
});
}
}
......@@ -15,11 +15,27 @@ export class AdminService {
return this.http.get<DemandAttachment[]>(`${this.baseUrl}/pendingStructures`);
}
public acceptStructureClaim(userEmail: string, structureId: number): Observable<DemandAttachment[]> {
return this.http.post<DemandAttachment[]>(`${this.baseUrl}/validatePendingStructure`, { userEmail, structureId });
public acceptStructureClaim(
userEmail: string,
structureId: number,
structureName: string
): Observable<DemandAttachment[]> {
return this.http.post<DemandAttachment[]>(`${this.baseUrl}/validatePendingStructure`, {
userEmail,
structureId,
structureName,
});
}
public refuseStructureClaim(userEmail: string, structureId: number): Observable<DemandAttachment[]> {
return this.http.post<DemandAttachment[]>(`${this.baseUrl}/rejectPendingStructure`, { userEmail, structureId });
public refuseStructureClaim(
userEmail: string,
structureId: number,
structureName: string
): Observable<DemandAttachment[]> {
return this.http.post<DemandAttachment[]>(`${this.baseUrl}/rejectPendingStructure`, {
userEmail,
structureId,
structureName,
});
}
}
......@@ -91,7 +91,7 @@
</div>
</div>
<div class="footerSearchSection isntPhoneContent" fxLayout="row" fxLayoutAlign="space-between center">
<div class="checkbox">
<div class="checkbox no-width">
<div class="checkboxItem">
<label>
<input
......
......@@ -118,7 +118,6 @@
}
a {
@include hyperlink;
width: 100%;
text-align: right;
}
......
......@@ -7,7 +7,7 @@
height: 40px;
width: 190px;
border: 1px solid $grey-4;
padding: 3px 16px 3px 16px;
padding: 3px 8px 3px 16px;
outline: none;
border-radius: 4px;
cursor: pointer;
......
......@@ -159,6 +159,9 @@ button {
-ms-transform: rotate(45deg);
}
}
&.no-width {
width: unset;
}
}
// Layout
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment