|
|
|
@ -11,6 +11,7 @@ class NewsAppSpecificOptions extends NextcloudAppSpecificOptions {
|
|
|
|
|
super.options = [ |
|
|
|
|
defaultCategoryOption, |
|
|
|
|
articleViewTypeOption, |
|
|
|
|
articleDisableMarkAsReadTimeoutOption, |
|
|
|
|
defaultArticlesFilterOption, |
|
|
|
|
articlesSortPropertyOption, |
|
|
|
|
articlesSortBoxOrderOption, |
|
|
|
@ -72,6 +73,14 @@ class NewsAppSpecificOptions extends NextcloudAppSpecificOptions {
|
|
|
|
|
values: _articleViewTypeValuesSubject, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
late final articleDisableMarkAsReadTimeoutOption = ToggleOption( |
|
|
|
|
storage: super.storage, |
|
|
|
|
category: articlesCategory, |
|
|
|
|
key: 'article-disable-mark-as-read-timeout', |
|
|
|
|
label: (final context) => AppLocalizations.of(context).newsOptionsArticleDisableMarkAsReadTimeout, |
|
|
|
|
defaultValue: BehaviorSubject.seeded(false), |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
late final defaultArticlesFilterOption = SelectOption<FilterType>( |
|
|
|
|
storage: super.storage, |
|
|
|
|
category: articlesCategory, |
|
|
|
|