Skip to content

Commit 9925ac8

Browse files
committed
v3.0.10
1 parent 1244301 commit 9925ac8

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "conet",
3-
"version": "3.0.9",
3+
"version": "3.0.10",
44
"license": "MIT",
55
"description": "CoNET",
66
"repository": {

app/public/scripts/appsManager.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,8 @@ const _appScript = {
745745
self.showResultItems(self, self.searchItemsArray());
746746
},
747747
searchNext: (self, event) => {
748-
if (self.moreResultsButtomLoading()) {
748+
const nextLink = self.searchItem().nextPage;
749+
if (self.moreResultsButtomLoading() || !nextLink) {
749750
return;
750751
}
751752
self.moreResultsButtomLoading(true);
@@ -754,7 +755,6 @@ const _appScript = {
754755
self.nextButtonErrorIndex(_view.connectInformationMessage.getErrorIndex(err));
755756
self.nextButtonShowError(true);
756757
}
757-
const nextLink = self.searchItem().nextPage;
758758
let currentArray = null;
759759
const com = {
760760
command: 'CoSearch',
@@ -776,7 +776,7 @@ const _appScript = {
776776
break;
777777
}
778778
case 2: {
779-
com.subCom = 'imageNext';
779+
com.subCom = 'imageSearchNext';
780780
currentArray = self.imageItemsArray();
781781
break;
782782
}

app/public/scripts/appsManager.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -840,8 +840,8 @@ const _appScript = {
840840
},
841841

842842
searchNext: ( self, event ) => {
843-
844-
if ( self.moreResultsButtomLoading ()) {
843+
const nextLink = self.searchItem().nextPage
844+
if ( self.moreResultsButtomLoading () || !nextLink ) {
845845
return
846846
}
847847

@@ -856,7 +856,7 @@ const _appScript = {
856856

857857
}
858858

859-
const nextLink = self.searchItem().nextPage
859+
860860

861861
let currentArray = null
862862
const com: QTGateAPIRequestCommand = {
@@ -881,7 +881,7 @@ const _appScript = {
881881
}
882882

883883
case 2: {
884-
com.subCom = 'imageNext'
884+
com.subCom = 'imageSearchNext'
885885
currentArray = self.imageItemsArray()
886886
break
887887
}
@@ -919,9 +919,9 @@ const _appScript = {
919919
self.nextButtonConetResponse ( false )
920920
const args = com.Args
921921
self.returnSearchResultItemsInit ( args.param )
922-
currentArray.Result.push ( ...args.param.Result )
923-
currentArray.nextPage = args.param.nextPage
924-
return self.showResultItems ( self, currentArray )
922+
currentArray.Result.push ( ...args.param.Result )
923+
currentArray.nextPage = args.param.nextPage
924+
return self.showResultItems ( self, currentArray )
925925

926926
})
927927

app/views/Shared/appHtml.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@
589589
.space
590590
<!-- /ko -->
591591

592-
<!-- ko ifnot: nextButtonShowError -->
592+
<!-- ko if: !nextButtonShowError() && searchItem().nextPage -->
593593
button.ui.large.button( data-bind = "css: { 'loading buttonUnActive': moreResultsButtomLoading, negative: nextButtonShowError, 'loadingGetResponse': nextButtonLoadingGetResponse, 'conetResponse': nextButtonConetResponse },text: info.moreResults[ $root.languageIndex() ], click: searchNext" style="margin-top: 1em;margin-bottom: 2em;" )
594594
<!-- /ko -->
595595

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "conet",
3-
"version": "3.0.9",
3+
"version": "3.0.10",
44
"license": "MIT",
55
"description": "CoNET platform",
66
"scripts": {

0 commit comments

Comments
 (0)