From 2426123eab71e61565cc9c13b47a929c912ddd80 Mon Sep 17 00:00:00 2001 From: opi Date: Fri, 3 Oct 2014 10:29:21 +0200 Subject: [PATCH] [fix] Redirect to app list when custom app installation fails. --- js/app.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/app.js b/js/app.js index 218a6049..8f371ff4 100644 --- a/js/app.js +++ b/js/app.js @@ -812,6 +812,12 @@ app = Sammy('#main', function (sam) { }); }); + // Special case for custom app installation. + sam.get('#/apps/install/custom', function (c) { + // If we try to GET /apps/install/custom, it means that installation fail. + // Need to redirect to apps/install to get rid of pacamn and see the log. + c.redirect('#/apps/install'); + }); sam.get('#/apps/install/:app', function (c) { c.api('/apps?raw', function(data) { // http://api.yunohost.org/#!/app/app_list_get_8 appData = data[c.params['app']];