Skip to content

Commit

Permalink
Fix video annotation reactive label update
Browse files Browse the repository at this point in the history
  • Loading branch information
mzur committed Feb 13, 2025
1 parent 8c5c7a7 commit d7979b0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion resources/assets/js/videos/models/Annotation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default class Annotation {
this.shape_id = args.shape_id;
this.created_at = args.created_at;
this.updated_at = args.updated_at;
this.labels = args.labels;
this._labels = ref(args.labels);
this._pending = ref(args.pending || false);
this._selected = ref(false);
Expand Down Expand Up @@ -56,6 +56,14 @@ export default class Annotation {
this._tracking.value = value;
}
get labels() {
return this._labels.value;
}
set labels(value) {
this._labels.value = value;
}
get frames() {
return this._frames.value;
}
Expand Down

0 comments on commit d7979b0

Please sign in to comment.