Skip to content
Snippets Groups Projects
Commit 683b708f authored by Alex ORLUC's avatar Alex ORLUC
Browse files

fix resId

parent 1efee5e6
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,6 @@ export class AttachmentsListComponent implements OnInit {
lang: any = LANG;
attachments: any;
loading: boolean = true;
resIds: number[] = [];
pos = 0;
mailevaEnabled: boolean = false;
......@@ -81,9 +80,9 @@ export class AttachmentsListComponent implements OnInit {
}
loadAttachments(resId: number) {
this.resIds[0] = resId;
this.resId = resId;
this.loading = true;
this.http.get("../../rest/resources/" + this.resIds[0] + "/attachments")
this.http.get("../../rest/resources/" + this.resId + "/attachments")
.subscribe((data: any) => {
this.mailevaEnabled = data.mailevaEnabled;
this.attachments = data.attachments;
......
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