summaryrefslogtreecommitdiffstats
path: root/js-old/controller/AppController.js
diff options
context:
space:
mode:
Diffstat (limited to 'js-old/controller/AppController.js')
-rw-r--r--js-old/controller/AppController.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/js-old/controller/AppController.js b/js-old/controller/AppController.js
new file mode 100644
index 000000000..e962bd66a
--- /dev/null
+++ b/js-old/controller/AppController.js
@@ -0,0 +1,22 @@
+/**
+ * Nextcloud - News
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Bernhard Posselt <dev@bernhard-posselt.com>
+ * @copyright Bernhard Posselt 2014
+ */
+app.controller('AppController', function (Loading, FeedResource, FolderResource) {
+ 'use strict';
+
+ this.loading = Loading;
+
+ this.isFirstRun = function () {
+ return FeedResource.size() === 0 && FolderResource.size() === 0;
+ };
+
+ this.play = function (item) {
+ this.playingItem = item;
+ };
+});