diff --git a/backend/webserver/api/datasets.py b/backend/webserver/api/datasets.py index a601adb0..565ec3b7 100644 --- a/backend/webserver/api/datasets.py +++ b/backend/webserver/api/datasets.py @@ -420,7 +420,7 @@ def get(self, dataset_id): # Perform mongodb query images = current_user.images \ .filter(query_build) \ - .order_by(order).only('id', 'file_name', 'annotating', 'annotated', 'num_annotations') + .order_by(order).only('id', 'file_name', 'annotating', 'annotated', 'num_annotations', 'category_ids') total = images.count() pages = int(total/per_page) + 1 diff --git a/client/src/components/annotator/FileTitle.vue b/client/src/components/annotator/FileTitle.vue index 0440611b..a67a3679 100755 --- a/client/src/components/annotator/FileTitle.vue +++ b/client/src/components/annotator/FileTitle.vue @@ -4,13 +4,13 @@ v-show="previousimage != null" class="fa fa-arrow-left image-arrows" style="float:left" - @click="route(previousimage)" + @click="route(previousimage, labelmode)" />
@@ -36,6 +36,10 @@ export default { nextimage: { type: Number, default: null + }, + labelmode: { + type: String, + required: false } }, methods: { @@ -44,13 +48,13 @@ export default { * * @param {Number} identifer id of a file */ - route(identifier) { + route(identifier, labelmode) { // Make sure we pop the latest session before annotations this.$parent.current.annotation = -1; this.$nextTick(() => { this.$parent.save(() => { - this.$router.push({ name: "annotate", params: { identifier } }); + this.$router.push({ name: "annotate", params: { identifier, labelmode } }); }); }); } diff --git a/client/src/views/Annotator.vue b/client/src/views/Annotator.vue index fbc2e6b8..4172f947 100755 --- a/client/src/views/Annotator.vue +++ b/client/src/views/Annotator.vue @@ -1,6 +1,5 @@