Commit e3c76e6b authored by Chris Peressini's avatar Chris Peressini

Change strings for projects dropdown placeholder and error state

gitlab-ce#37513
parent 5d2b7aa2
...@@ -27,7 +27,7 @@ export default { ...@@ -27,7 +27,7 @@ export default {
listEmptyMessage() { listEmptyMessage() {
return this.searchFailed ? return this.searchFailed ?
s__('ProjectsDropdown|Something went wrong on our end.') : s__('ProjectsDropdown|Something went wrong on our end.') :
s__('ProjectsDropdown|No projects matched your query'); s__('ProjectsDropdown|Sorry, no projects matched your search');
}, },
}, },
}; };
......
...@@ -53,7 +53,7 @@ export default { ...@@ -53,7 +53,7 @@ export default {
class="form-control" class="form-control"
ref="search" ref="search"
v-model="searchQuery" v-model="searchQuery"
:placeholder="s__('ProjectsDropdown|Search projects')" :placeholder="s__('ProjectsDropdown|Search your projects')"
/> />
<i <i
v-if="!searchQuery" v-if="!searchQuery"
......
...@@ -987,6 +987,24 @@ msgstr "" ...@@ -987,6 +987,24 @@ msgstr ""
msgid "Push Rules" msgid "Push Rules"
msgstr "" msgstr ""
msgid "ProjectsDropdown|Loading projects"
msgstr ""
msgid "ProjectsDropdown|Sorry, no projects matched your search"
msgstr ""
msgid "ProjectsDropdown|Projects you visit often will appear here"
msgstr ""
msgid "ProjectsDropdown|Search your projects"
msgstr ""
msgid "ProjectsDropdown|Something went wrong on our end"
msgstr ""
msgid "ProjectsDropdown|This feature requires browser localStorage support"
msgstr ""
msgid "Push events" msgid "Push events"
msgstr "" msgstr ""
......
...@@ -43,7 +43,7 @@ describe('ProjectsListSearchComponent', () => { ...@@ -43,7 +43,7 @@ describe('ProjectsListSearchComponent', () => {
expect(vm.listEmptyMessage).toBe('Something went wrong on our end.'); expect(vm.listEmptyMessage).toBe('Something went wrong on our end.');
vm.searchFailed = false; vm.searchFailed = false;
expect(vm.listEmptyMessage).toBe('No projects matched your query'); expect(vm.listEmptyMessage).toBe('Sorry, no projects matched your search');
}); });
}); });
}); });
......
...@@ -94,7 +94,7 @@ describe('SearchComponent', () => { ...@@ -94,7 +94,7 @@ describe('SearchComponent', () => {
expect(vm.$el.classList.contains('search-input-container')).toBeTruthy(); expect(vm.$el.classList.contains('search-input-container')).toBeTruthy();
expect(vm.$el.classList.contains('hidden-xs')).toBeTruthy(); expect(vm.$el.classList.contains('hidden-xs')).toBeTruthy();
expect(inputEl).not.toBe(null); expect(inputEl).not.toBe(null);
expect(inputEl.getAttribute('placeholder')).toBe('Search projects'); expect(inputEl.getAttribute('placeholder')).toBe('Search your projects');
expect(vm.$el.querySelector('.search-icon')).toBeDefined(); expect(vm.$el.querySelector('.search-icon')).toBeDefined();
}); });
}); });
......
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