From 2220e48c3276d501867fde5b01194ccb1ddb0652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sun, 21 Jun 2020 15:12:21 +0200 Subject: [PATCH] Select main domain in app install page --- src/js/yunohost/controllers/apps.js | 1 + src/js/yunohost/filters.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/js/yunohost/controllers/apps.js b/src/js/yunohost/controllers/apps.js index ddb4193e..9f77377b 100644 --- a/src/js/yunohost/controllers/apps.js +++ b/src/js/yunohost/controllers/apps.js @@ -463,6 +463,7 @@ }); }); + args[k].choices[params.domains_main].selected = true; // Custom help link args[k].helpLink += ""+y18n.t('manage_domains')+""; } diff --git a/src/js/yunohost/filters.js b/src/js/yunohost/filters.js index aa7f6722..94fef552 100644 --- a/src/js/yunohost/filters.js +++ b/src/js/yunohost/filters.js @@ -14,6 +14,7 @@ req.params.domains = []; req.api('GET', '/domains', {}, function(data) { req.params.domains = data.domains; + req.params.domains_main = data.main; }); }