[Fix] Fixed broken search on navigation
This commit is contained in:
parent
223f4e6b22
commit
1c1df558f7
|
@ -259,7 +259,7 @@
|
||||||
type: String,
|
type: String,
|
||||||
value: './'
|
value: './'
|
||||||
},
|
},
|
||||||
dlgTitle : {
|
dlgTitle: {
|
||||||
type: String
|
type: String
|
||||||
},
|
},
|
||||||
realm: {
|
realm: {
|
||||||
|
@ -348,9 +348,12 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
observeSearchTerm: function (newValue, oldValue) {
|
observeSearchTerm: function (newValue, oldValue) {
|
||||||
if (this.realm == null || this.objectType == null || this.selectedType == null) return;
|
if (this.realm == null || this.objectType == null || this.selectedType == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.debounce("doSearch", function () {
|
this.debounce("doSearch", function () {
|
||||||
|
this.offset = 0;
|
||||||
this.reloadTypeDetails();
|
this.reloadTypeDetails();
|
||||||
}, 500);
|
}, 500);
|
||||||
},
|
},
|
||||||
|
@ -560,7 +563,6 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
reloadTypeDetails: function () {
|
reloadTypeDetails: function () {
|
||||||
|
|
||||||
this.dlgTitle = 'Reload failed';
|
this.dlgTitle = 'Reload failed';
|
||||||
this._handleAjaxResponse = function (data) {
|
this._handleAjaxResponse = function (data) {
|
||||||
this.set('objects', data.detail.response);
|
this.set('objects', data.detail.response);
|
||||||
|
|
Loading…
Reference in New Issue