diff --git a/js/app.js b/js/app.js index 42c746a7..82880bea 100644 --- a/js/app.js +++ b/js/app.js @@ -604,6 +604,8 @@ app = Sammy('#main', function (sam) { sam.get('#/apps/:app', function (c) { c.api('/app/'+c.params['app']+'?raw=true', function(data) { // http://api.yunohost.org/#!/app/app_info_get_9 + // Presentation + data.settings.allowed_users = data.settings.allowed_users.replace(',', ', '); c.view('app/app_info', data); }); }); @@ -787,6 +789,19 @@ app = Sammy('#main', function (sam) { } }); + // Make app default + sam.get('#/apps/:app/default', function (c) { + if (confirm('Are you sure you want to make this app default ?')) { + params = {'app': c.params['app']} + c.api('/app/default', function() { // + store.clear('slide'); + c.redirect('#/apps/'+ c.params['app']); + }, 'PUT', params); + } else { + store.clear('slide'); + c.redirect('#/apps/'+ c.params['app']); + } + }); /** * Services diff --git a/views/app/app_access.ms b/views/app/app_access.ms index dd5cb0ad..05d15079 100644 --- a/views/app/app_access.ms +++ b/views/app/app_access.ms @@ -12,7 +12,7 @@
-

Allowed users

+

Allowed users

{{#if settings.allowed_users}}
@@ -60,6 +60,7 @@

+ Bulk operations

diff --git a/views/app/app_info.ms b/views/app/app_info.ms index 73df90d9..ac00324b 100644 --- a/views/app/app_info.ms +++ b/views/app/app_info.ms @@ -4,41 +4,62 @@

{{settings.label}}

- - -
- - Uninstall - +
+
+

Infos

+
+
+
+
ID
+
{{settings.id}}
+
Description
+
{{manifest.description.en}}
+
Mode
+
{{settings.mode}}
+
URL
+
https://{{settings.domain}}{{settings.path}}
+
+
+
+ +
+
+ +
+
+
+

Manage user access. Allowed users: {{settings.allowed_users}}.

+ + Access + +
+
+
+

Redirect domain root to this application ({{settings.domain}}).

+ + Make default + +
+
+
+

Remove this application.

+ + Uninstall + +
+
+
+