1
0
mirror of https://github.com/chylex/Nextcloud-News.git synced 2025-08-17 00:31:42 +02:00
Files
.github
.tx
appinfo
bin
css
docs
img
js
admin
app
controller
AppController.js
ContentController.js
ExploreController.js
NavigationController.js
SettingsController.js
directive
filter
gui
plugin
service
tests
.jshintignore
.jshintrc
README.md
gulpfile.js
karma.conf.js
package-lock.json
package.json
protractor.conf.js
l10n
lib
screenshots
templates
tests
.editorconfig
.gitignore
.mailmap
.travis.yml
AUTHORS.md
CHANGELOG.md
CONTRIBUTING.md
COPYING
Makefile
README.md
composer.json
composer.lock
phpstan.neon.dist
phpunit.integration.xml
phpunit.xml
Nextcloud-News/js/controller/AppController.js
2019-03-05 11:35:14 +01:00

23 lines
561 B
JavaScript

/**
* 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;
};
});