Skip to content

Commit 0af308b

Browse files
author
Antti Huovila
committed
Project metrics are refreshed now
1 parent ba16d60 commit 0af308b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/views/portfolio/projects/ProjectComponents.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,12 +450,15 @@ export default {
450450
this.axios.delete(`${this.$api.BASE_URL}/${this.$api.URL_COMPONENT}/${dep.uuid}`)
451451
);
452452
await Promise.all(deletePromises);
453+
this.$refs.table.refresh({ silent: true });
453454
}
454455
//Step 3: Delete the BOM after all its components are removed
455456
await this.axios.delete(deleteBomUrl);
456457
this.$toastr.s(this.$t("message.bom_deleted"));
457458
//Step 4: Refresh the table
458459
this.$refs.table.removeAll();
460+
//Step 5: Refresh the metrics
461+
await this.axios.get(`/api/v1/metrics/project/${this.uuid}/refresh`);
459462
}
460463
else {
461464
this.$toastr.w(this.$t("message.no_bom_available"));

0 commit comments

Comments
 (0)