From 2cbb23a8d63d7e94ac0a28d14aeb5ff22b14ea04 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Thu, 7 Jul 2022 15:22:10 +0200 Subject: [PATCH] Also amend iconUrl for compatibility --- src/js/client.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/js/client.js b/src/js/client.js index cef83be47..c65bce1eb 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -1845,6 +1845,8 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout }; Client.prototype.getApplinks = function (callback) { + var that = this; + get('/api/v1/applinks', null, function (error, data, status) { if (error) return callback(error); if (status !== 200) return callback(new ClientError(status, data)); @@ -1857,6 +1859,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout applink.runState = RSTATES.RUNNING; applink.health = HSTATES.HEALTHY; applink.accessLevel = 'operator'; + applink.iconUrl = that.apiOrigin + '/api/v1/applinks/' + applink.id + '/icon?access_token=' + token + '&ts=' + applink.ts; }); callback(null, data.applinks);