Do not set Running states for app links

This commit is contained in:
Johannes Zellner
2022-07-11 16:58:10 +02:00
parent 490e570112
commit 52d80cacd0
2 changed files with 9 additions and 3 deletions

View File

@@ -80,6 +80,12 @@ var TASK_TYPES = {
TASK_SYNC_DNS_RECORDS: 'syncDnsRecords',
};
const APP_TYPES = {
APP: 'app', //default
LINK: 'link',
PROXIED: 'proxied'
};
var SECRET_PLACEHOLDER = String.fromCharCode(0x25CF).repeat(8);
// ----------------------------------------------
@@ -621,7 +627,6 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
};
Client.prototype.installApp = function (id, manifest, title, config, callback) {
var that = this;
var data = {
appStoreId: id + '@' + manifest.version,
subdomain: config.subdomain,
@@ -1853,7 +1858,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
// amend properties to mimick full app
data.applinks.forEach(function (applink) {
applink.type = 'applink';
applink.type = APP_TYPES.LINK;
applink.fqdn = applink.upstreamUri; // this fqdn may contain the protocol!
applink.manifest = { addons: {}};
applink.installationState = ISTATES.INSTALLED;