diff options
Diffstat (limited to 'applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view')
-rw-r--r-- | applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js index 0e6ae9d20c..011215ca3c 100644 --- a/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js +++ b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js @@ -399,10 +399,9 @@ return view.extend({ let { url, revision, advanced_mode, branch } = data; let { version, target, profile, packages } = firmware; let candidates = []; - let request_url = `${url}/api/overview`; - if (version.endsWith('SNAPSHOT')) { - request_url = `${url}/api/v1/revision/${version}/${target}`; - } + + const endpoint = version.endsWith('SNAPSHOT') ? `revision/${version}/${target}` : 'overview'; + const request_url = `${url}/api/v1/${endpoint}`; ui.showModal(_('Searching...'), [ E( |