Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
c6f76811
Commit
c6f76811
authored
Feb 12, 2018
by
Ray Schamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix merge issues
parent
5513b6a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/views/search/search.jsx
src/views/search/search.jsx
+8
-5
No files found.
src/views/search/search.jsx
View file @
c6f76811
...
@@ -81,7 +81,7 @@ class Search extends React.Component {
...
@@ -81,7 +81,7 @@ class Search extends React.Component {
const
loadedSoFar
=
this
.
state
.
loaded
;
const
loadedSoFar
=
this
.
state
.
loaded
;
Array
.
prototype
.
push
.
apply
(
loadedSoFar
,
body
);
Array
.
prototype
.
push
.
apply
(
loadedSoFar
,
body
);
const
currentOffset
=
this
.
state
.
offset
+
this
.
state
.
loadNumber
;
const
currentOffset
=
this
.
state
.
offset
+
this
.
state
.
loadNumber
;
var
willLoadMore
=
body
.
length
===
this
.
props
.
loadNumber
;
const
willLoadMore
=
body
.
length
===
this
.
state
.
loadNumber
;
this
.
setState
({
this
.
setState
({
loaded
:
loadedSoFar
,
loaded
:
loadedSoFar
,
...
@@ -123,8 +123,8 @@ class Search extends React.Component {
...
@@ -123,8 +123,8 @@ class Search extends React.Component {
<
Grid
<
Grid
cards
cards
showAvatar
showAvatar
itemType=
{
this
.
state
.
tab
}
items=
{
this
.
state
.
loaded
}
items=
{
this
.
state
.
loaded
}
itemType=
{
this
.
props
.
tab
}
showFavorites=
{
false
}
showFavorites=
{
false
}
showLoves=
{
false
}
showLoves=
{
false
}
showViews=
{
false
}
showViews=
{
false
}
...
@@ -135,8 +135,11 @@ class Search extends React.Component {
...
@@ -135,8 +135,11 @@ class Search extends React.Component {
searchAction
=
<
h2
className=
"search-prompt"
><
FormattedMessage
id=
"general.searchEmpty"
/></
h2
>;
searchAction
=
<
h2
className=
"search-prompt"
><
FormattedMessage
id=
"general.searchEmpty"
/></
h2
>;
}
else
if
(
this
.
state
.
loadMore
)
{
}
else
if
(
this
.
state
.
loadMore
)
{
searchAction
=
(
searchAction
=
(
<
Button
onClick=
{
this
.
getSearchMore
}
className=
"white"
>
<
Button
<
FormattedMessage
id=
'general.loadMore'
/>
className=
"white"
onClick=
{
this
.
handleGetSearchMore
}
>
<
FormattedMessage
id=
"general.loadMore"
/>
</
Button
>
</
Button
>
);
);
}
}
...
@@ -165,7 +168,7 @@ class Search extends React.Component {
...
@@ -165,7 +168,7 @@ class Search extends React.Component {
{
this
.
getTab
(
'
projects
'
)
}
{
this
.
getTab
(
'
projects
'
)
}
{
this
.
getTab
(
'
studios
'
)
}
{
this
.
getTab
(
'
studios
'
)
}
</
Tabs
>
</
Tabs
>
{
this
.
getProjectBox
()
}
{
this
.
getProjectBox
()
}
</
div
>
</
div
>
</
div
>
</
div
>
);
);
...
...
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