support: fix issue where app error tickets cannot be opened

This commit is contained in:
Girish Ramakrishnan
2023-04-02 18:03:41 +02:00
parent 7b70b57b37
commit 8f1c1df48f
18 changed files with 69 additions and 144 deletions
+5 -7
View File
@@ -3458,14 +3458,12 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
else this._fetchingAppstoreAppsListener.push(callback);
};
Client.prototype.getAppstoreApps = function (repository, callback) {
Client.prototype.getAppstoreApps = function (callback) {
var that = this;
callback = callback || function () {};
this._appstoreRepository = repository || 'core';
get('/api/v1/appstore/apps?repository=' + this._appstoreRepository, null, function (error, data, status) {
get('/api/v1/appstore/apps', null, function (error, data, status) {
if (error) return callback(error);
if (status !== 200) return callback(new ClientError(status, data));
@@ -3475,10 +3473,10 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.getAppstoreAppsFast = function (repository, callback) {
if (this._appstoreAppCache.length !== 0 && this._appstoreRepository === repository) return callback(null, this._appstoreAppCache);
Client.prototype.getAppstoreAppsFast = function (callback) {
if (this._appstoreAppCache.length !== 0) return callback(null, this._appstoreAppCache);
this.getAppstoreApps(repository || 'core', callback);
this.getAppstoreApps(callback);
};
Client.prototype.getSubscription = function (callback) {