diff --git a/src/js/client.js b/src/js/client.js index c6fa16e29..614bb1330 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -3330,9 +3330,10 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout var that = this; callback = callback || function () {}; - repository = repository || 'core'; - get('/api/v1/appstore/apps?repository=' + repository, null, function (error, data, status) { + this._appstoreRepository = repository || 'core'; + + get('/api/v1/appstore/apps?repository=' + this._appstoreRepository, null, function (error, data, status) { if (error) return callback(error); if (status !== 200) return callback(new ClientError(status, data)); @@ -3343,11 +3344,9 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout }; Client.prototype.getAppstoreAppsFast = function (repository, callback) { - if (this._appstoreAppCache.length !== 0) return callback(null, this._appstoreAppCache); + if (this._appstoreAppCache.length !== 0 && this._appstoreRepository === repository) return callback(null, this._appstoreAppCache); - repository = repository || 'core'; - - this.getAppstoreApps(repository, callback); + this.getAppstoreApps(repository || 'core', callback); }; Client.prototype.getSubscription = function (callback) { diff --git a/src/theme.scss b/src/theme.scss index c9fe7dade..ac7e50f0a 100644 --- a/src/theme.scss +++ b/src/theme.scss @@ -852,31 +852,35 @@ multiselect { margin: auto; max-width: 1200px; - > input { + > * { margin: 0 10px; - margin-right: 15px; } - > button, > .dropdown > .btn { - border-radius: 0; - display: inline-block; - } + // > input { + // margin: 0 10px; + // margin-right: 15px; + // } - > button:first-of-type { - margin-left: 5px; - } + // > button, > .dropdown > .btn { + // border-radius: 0; + // display: inline-block; + // } - @media(max-width:768px) { - flex-wrap: wrap; + // > button:first-of-type { + // margin-left: 5px; + // } - > input { - margin: 0; - } + // @media(max-width:768px) { + // flex-wrap: wrap; - > button, > .dropdown { - display: none; - } - } + // > input { + // margin: 0; + // } + + // > button, > .dropdown { + // display: none; + // } + // } } } diff --git a/src/views/appstore.html b/src/views/appstore.html index cc8744632..6fa80820f 100644 --- a/src/views/appstore.html +++ b/src/views/appstore.html @@ -354,19 +354,26 @@