BigW Consortium Gitlab

Commit cce8e17e by Dennis Tang

fix some labeling

parent 1e4c2a2e
...@@ -50,7 +50,7 @@ export default { ...@@ -50,7 +50,7 @@ export default {
isDisabled() { isDisabled() {
return !this.selectedProject || !this.selectedZone; return !this.selectedProject || !this.selectedZone;
}, },
searchResults() { results() {
return this.machineTypes.filter( return this.machineTypes.filter(
item => item.name.toLowerCase().indexOf(this.searchQuery) > -1, item => item.name.toLowerCase().indexOf(this.searchQuery) > -1,
); );
...@@ -138,7 +138,7 @@ export default { ...@@ -138,7 +138,7 @@ export default {
<div class="dropdown-content"> <div class="dropdown-content">
<ul> <ul>
<li <li
v-for="result in searchResults" v-for="result in results"
:key="result.id" :key="result.id"
> >
<a <a
......
...@@ -56,7 +56,7 @@ export default { ...@@ -56,7 +56,7 @@ export default {
isDisabled() { isDisabled() {
return this.projects.length < 2; return this.projects.length < 2;
}, },
searchResults() { results() {
return this.projects.filter(item => item.name.toLowerCase().indexOf(this.searchQuery) > -1); return this.projects.filter(item => item.name.toLowerCase().indexOf(this.searchQuery) > -1);
}, },
toggleText() { toggleText() {
...@@ -158,7 +158,7 @@ export default { ...@@ -158,7 +158,7 @@ export default {
<div class="dropdown-content"> <div class="dropdown-content">
<ul> <ul>
<li <li
v-for="result in searchResults" v-for="result in results"
:key="result.project_number" :key="result.project_number"
> >
<a <a
......
...@@ -50,7 +50,7 @@ export default { ...@@ -50,7 +50,7 @@ export default {
isDisabled() { isDisabled() {
return !this.hasProject; return !this.hasProject;
}, },
searchResults() { results() {
return this.zones.filter(item => item.name.toLowerCase().indexOf(this.searchQuery) > -1); return this.zones.filter(item => item.name.toLowerCase().indexOf(this.searchQuery) > -1);
}, },
toggleText() { toggleText() {
...@@ -123,7 +123,7 @@ export default { ...@@ -123,7 +123,7 @@ export default {
<div class="dropdown-content"> <div class="dropdown-content">
<ul> <ul>
<li <li
v-for="result in searchResults" v-for="result in results"
:key="result.id" :key="result.id"
> >
<a <a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment