aboutsummaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-01-22 11:38:11 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-01-22 11:38:11 +0100
commit3038006e8e513c44e1d5bb643cef09b9464bea99 (patch)
treeb79d3a0c65989cbac5f192cd8fe5c21bc5bf236b /settings
parent6a3efc6f1bb53bc87f0058d1399689715ded219a (diff)
downloadnextcloud-server-3038006e8e513c44e1d5bb643cef09b9464bea99.tar.gz
nextcloud-server-3038006e8e513c44e1d5bb643cef09b9464bea99.zip
Add a default app icon for apps that don't have one
Diffstat (limited to 'settings')
-rw-r--r--settings/js/apps.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js
index 3078e4fda33..b6f6363a992 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -153,6 +153,11 @@ OC.Settings.Apps = OC.Settings.Apps || {
}
app.firstExperimental = firstExperimental;
+ if (!app.preview) {
+ app.preview = OC.imagePath('core', 'default-app-icon');
+ app.previewAsIcon = true;
+ }
+
var html = template(app);
if (selector) {
selector.html(html);