BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
cf65abd8
Commit
cf65abd8
authored
May 08, 2018
by
Dennis Tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no search results state
parent
53e27b8c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
gke_machine_type_dropdown.vue
...luster_dropdowns/components/gke_machine_type_dropdown.vue
+6
-0
gke_project_id_dropdown.vue
..._cluster_dropdowns/components/gke_project_id_dropdown.vue
+6
-0
gke_zone_dropdown.vue
...ts/gke_cluster_dropdowns/components/gke_zone_dropdown.vue
+6
-0
No files found.
app/assets/javascripts/projects/gke_cluster_dropdowns/components/gke_machine_type_dropdown.vue
View file @
cf65abd8
...
...
@@ -73,6 +73,9 @@ export default {
searchPlaceholderText
()
{
return
s__
(
'ClusterIntegration|Search machine types'
);
},
noSearchResultsText
()
{
return
s__
(
'ClusterIntegration|No machine types matched your search'
);
},
},
created
()
{
eventHub
.
$on
(
'zoneSelected'
,
this
.
fetchMachineTypes
);
...
...
@@ -135,6 +138,9 @@ export default {
/>
<div
class=
"dropdown-content"
>
<ul>
<li
v-show=
"!results.length"
>
<span
class=
"menu-item"
>
{{
noSearchResultsText
}}
</span>
</li>
<li
v-for=
"result in results"
:key=
"result.id"
...
...
app/assets/javascripts/projects/gke_cluster_dropdowns/components/gke_project_id_dropdown.vue
View file @
cf65abd8
...
...
@@ -57,6 +57,9 @@ export default {
results
()
{
return
this
.
projects
.
filter
(
item
=>
item
.
name
.
toLowerCase
().
indexOf
(
this
.
searchQuery
)
>
-
1
);
},
noSearchResultsText
()
{
return
s__
(
'ClusterIntegration|No projects matched your search'
);
},
toggleText
()
{
if
(
this
.
isLoading
)
{
return
s__
(
'ClusterIntegration|Fetching projects'
);
...
...
@@ -155,6 +158,9 @@ export default {
/>
<div
class=
"dropdown-content"
>
<ul>
<li
v-show=
"!results.length"
>
<span
class=
"menu-item"
>
{{
noSearchResultsText
}}
</span>
</li>
<li
v-for=
"result in results"
:key=
"result.project_number"
...
...
app/assets/javascripts/projects/gke_cluster_dropdowns/components/gke_zone_dropdown.vue
View file @
cf65abd8
...
...
@@ -67,6 +67,9 @@ export default {
searchPlaceholderText
()
{
return
s__
(
'ClusterIntegration|Search zones'
);
},
noSearchResultsText
()
{
return
s__
(
'ClusterIntegration|No zones matched your search'
);
},
},
created
()
{
eventHub
.
$on
(
'projectSelected'
,
this
.
fetchZones
);
...
...
@@ -120,6 +123,9 @@ export default {
/>
<div
class=
"dropdown-content"
>
<ul>
<li
v-show=
"!results.length"
>
<span
class=
"menu-item"
>
{{
noSearchResultsText
}}
</span>
</li>
<li
v-for=
"result in results"
:key=
"result.id"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment