Skip to content

Commit

Permalink
Clean up for better code clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
aneust committed Nov 14, 2024
1 parent b82d433 commit 8d44236
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
8 changes: 1 addition & 7 deletions resources/assets/js/annotations/annotatorContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -601,12 +601,10 @@ export default {
},
openSidebarLabels(){
// opens sidebar labels
this.$refs.sidebar.$emit('open', 'labels');
Events.$emit('focusTypeaheadEvent');
},
},
watch: {
async imageId(id) {
Expand Down Expand Up @@ -758,15 +756,11 @@ export default {
}
}
Events.$on('focusTypeaheadEvent', () => {
Events.$on('focusTypeaheadEvent', () => {
this.$nextTick(() => {
// call global for focustypeahead TODO need other way!
this.focusInputFindlabel = true;
// Events.$emit('callFunctionFocustypeahead')
});
this.focusInputFindlabel = false;
});
Keyboard.on('control+k', () => {
Expand Down
1 change: 0 additions & 1 deletion resources/assets/js/annotations/components/labelsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export default {
},
watch: {
focusInput(){
// console.log("n ", this.focusInput);
}
},
methods: {
Expand Down
5 changes: 0 additions & 5 deletions resources/assets/js/label-trees/components/labelTrees.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,6 @@ export default {
this.handleSelect(this.favourites[index]);
}
},
/*
focusTypeahead() {
this.$refs.typeaheadInput.$el.querySelector('input').focus();
},
*/
},
watch: {
trees: {
Expand Down

0 comments on commit 8d44236

Please sign in to comment.