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
33697aa2
Commit
33697aa2
authored
Sep 04, 2017
by
kushalpandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Projects Dropdown Frequent Projects List Component
parent
c2c2407e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
0 deletions
+57
-0
projects_list_frequent.vue
...s/projects_dropdown/components/projects_list_frequent.vue
+57
-0
No files found.
app/assets/javascripts/projects_dropdown/components/projects_list_frequent.vue
0 → 100644
View file @
33697aa2
<
script
>
import
{
s__
}
from
'../../locale'
;
import
projectsListItem
from
'./projects_list_item.vue'
;
export
default
{
components
:
{
projectsListItem
,
},
props
:
{
projects
:
{
type
:
Array
,
required
:
true
,
},
localStorageFailed
:
{
type
:
Boolean
,
required
:
true
,
},
},
computed
:
{
isListEmpty
()
{
return
this
.
projects
.
length
===
0
;
},
listEmptyMessage
()
{
return
this
.
localStorageFailed
?
s__
(
'ProjectsDropdown|This feature requires browser localStorage support'
)
:
s__
(
'ProjectsDropdown|Projects you visit often will appear here'
);
},
},
};
</
script
>
<
template
>
<div
class=
"projects-list-frequent-container"
>
<ul
class=
"list-unstyled"
>
<li
class=
"section-empty"
v-if=
"isListEmpty"
>
{{
listEmptyMessage
}}
</li>
<projects-list-item
v-else
v-for=
"(project, index) in projects"
:key=
"index"
:project-id=
"project.id"
:project-name=
"project.name"
:namespace=
"project.namespace"
:web-url=
"project.webUrl"
:avatar-url=
"project.avatarUrl"
/>
</ul>
</div>
</
template
>
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