Skip to content
Snippets Groups Projects

Context switcher search improvements

All threads resolved!
4 files
+ 18
48
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -80,11 +80,6 @@ export default {
@@ -80,11 +80,6 @@ export default {
required: false,
required: false,
default: () => ({}),
default: () => ({}),
},
},
isShown: {
type: Boolean,
required: false,
default: false,
},
},
},
data() {
data() {
return {
return {
@@ -102,19 +97,15 @@ export default {
@@ -102,19 +97,15 @@ export default {
return this.$apollo.queries.groupsAndProjects.loading;
return this.$apollo.queries.groupsAndProjects.loading;
},
},
},
},
watch: {
isShown(shown) {
if (shown) {
this.$refs['search-box'].focusInput();
}
},
},
created() {
created() {
if (this.currentContext.namespace) {
if (this.currentContext.namespace) {
trackContextAccess(this.username, this.currentContext);
trackContextAccess(this.username, this.currentContext);
}
}
},
},
methods: {
methods: {
 
focusInput() {
 
this.$refs['search-box'].focusInput();
 
},
handleError(e) {
handleError(e) {
Sentry.captureException(e);
Sentry.captureException(e);
this.hasError = true;
this.hasError = true;
Loading