in entity-browser-frontend/app/controller/data-view.js [89:106]
pageChanged: function () {
const pageNo = this.currentPage;
const offset = (pageNo - 1) * dataViewCtrl.pageSize;
const self = this;
self.currentPage = pageNo;
typeService.search(currentDatabase.get(), dataViewCtrl.type.id, searchTerm, offset)
.then(function (data) {
self.items = data.items;
self.totalCount = data.totalCount;
self.error = null;
dataViewCtrl.isSearchExecuted = true;
}, function (error) {
if (error.data && error.data.msg) {
self.error = error.data.msg;
dataViewCtrl.isSearchExecuted = true;
}
});
},