diff --git a/lib/www/client/source/src/views/Log.vue b/lib/www/client/source/src/views/Log.vue index d808ff9..ef0cd18 100644 --- a/lib/www/client/source/src/views/Log.vue +++ b/lib/www/client/source/src/views/Log.vue @@ -182,6 +182,26 @@ mdi-delete Delete all comments + + + + + @@ -949,6 +969,23 @@ export default { } }, + isAcceptedQc (item) { + return item.labels.includes('QCAccepted'); + }, + + async acceptQc (item, accept = true) { + + const url = accept + ? `/project/${this.$route.params.project}/qc/results/accept` + : `/project/${this.$route.params.project}/qc/results/unaccept`; + + await this.api([url, { + method: "POST", + body: [ item.id ] + }]); + + }, + setActiveItem (item) { // Disable setting the active item for now, // it's kind of annoying.