File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed
client/src/components/Tools/Code Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 88cache :
99 directories :
1010 - node_modules
11+ env :
12+ - ELECTRON_FORCE_WINDOW_MENU_BAR=true
1113after_success :
1214 - if [ $TRAVIS_BRANCH == "master" ]; then npm run pack; fi
Original file line number Diff line number Diff line change @@ -98,12 +98,7 @@ class Code extends Component {
9898 renderPagination = ( ) => {
9999 const { page } = this . state ;
100100 const { codes } = this . props ;
101- if (
102- ! codes . loading &&
103- ! codes . error &&
104- codes . data . length &&
105- codes . data . length >= MAX_GIST
106- ) {
101+ if ( ! codes . loading && ! codes . error && codes . data . length ) {
107102 return (
108103 < div className = "nav" >
109104 < ul >
@@ -117,9 +112,15 @@ class Code extends Component {
117112 < FiArrowLeftCircle />
118113 </ li >
119114 ) }
120- < li onClick = { ( ) => this . setState ( { page : page + 1 } ) } >
121- < FiArrowRightCircle />
122- </ li >
115+ { codes . data . length === MAX_GIST && (
116+ < li
117+ onClick = { ( ) =>
118+ this . setState ( { page : page + 1 } )
119+ }
120+ >
121+ < FiArrowRightCircle />
122+ </ li >
123+ ) }
123124 </ ul >
124125 </ div >
125126 ) ;
You can’t perform that action at this time.
0 commit comments