summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/chrome/apps_menu.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/js/chrome/apps_menu.js')
-rw-r--r--addons/web/static/src/js/chrome/apps_menu.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/addons/web/static/src/js/chrome/apps_menu.js b/addons/web/static/src/js/chrome/apps_menu.js
index eb7faaa971b..b7e057f80fb 100644
--- a/addons/web/static/src/js/chrome/apps_menu.js
+++ b/addons/web/static/src/js/chrome/apps_menu.js
@@ -38,14 +38,17 @@ var AppsMenu = Widget.extend({
return this._apps;
},
/**
- * Open the first app in the list of apps
+ * Open the first app in the list of apps. Returns whether one was found.
+ *
+ * @returns {Boolean}
*/
openFirstApp: function () {
if (!this._apps.length) {
- return
+ return false;
}
var firstApp = this._apps[0];
this._openApp(firstApp);
+ return true;
},
//--------------------------------------------------------------------------