mirror of
https://github.com/chylex/Nextcloud-News.git
synced 2025-08-18 20:25:00 +02:00
.github
.tx
appinfo
bin
css
docs
img
js
admin
app
controller
directive
filter
gui
plugin
service
FeedResource.js
FolderResource.js
ItemResource.js
Loading.js
OPMLImporter.js
OPMLParser.js
Publisher.js
Resource.js
SettingsResource.js
ShareResource.js
tests
.jshintignore
.jshintrc
README.md
gulpfile.js
karma.conf.js
package-lock.json
package.json
protractor.conf.js
l10n
lib
screenshots
src
templates
tests
.editorconfig
.eslintrc.js
.gitignore
.gitmodules
.mailmap
AUTHORS.md
CHANGELOG.md
CONTRIBUTING.md
COPYING
Makefile
README.md
babel.config.js
composer.json
composer.lock
mkdocs.yml
package-lock.json
package.json
phpstan.neon.dist
phpunit.xml
stylelint.config.js
webpack.config.js
27 lines
577 B
JavaScript
27 lines
577 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.service('Loading', function () {
|
|
'use strict';
|
|
|
|
this.loading = {
|
|
global: false,
|
|
content: false,
|
|
autopaging: false
|
|
};
|
|
|
|
this.setLoading = function (area, isLoading) {
|
|
this.loading[area] = isLoading;
|
|
};
|
|
|
|
this.isLoading = function (area) {
|
|
return this.loading[area];
|
|
};
|
|
|
|
}); |