summaryrefslogtreecommitdiffstats
path: root/js/controller/AppController.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/controller/AppController.js')
-rw-r--r--js/controller/AppController.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/js/controller/AppController.js b/js/controller/AppController.js
new file mode 100644
index 000000000..184cf6fc5
--- /dev/null
+++ b/js/controller/AppController.js
@@ -0,0 +1,20 @@
+/**
+ * ownCloud - 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;
+ };
+
+}); \ No newline at end of file