|
|
@ -11,6 +11,7 @@ class NewsAppSpecificOptions extends NextcloudAppSpecificOptions { |
|
|
|
super.options = [ |
|
|
|
super.options = [ |
|
|
|
defaultCategoryOption, |
|
|
|
defaultCategoryOption, |
|
|
|
articleViewTypeOption, |
|
|
|
articleViewTypeOption, |
|
|
|
|
|
|
|
articleDisableMarkAsReadTimeoutOption, |
|
|
|
defaultArticlesFilterOption, |
|
|
|
defaultArticlesFilterOption, |
|
|
|
articlesSortPropertyOption, |
|
|
|
articlesSortPropertyOption, |
|
|
|
articlesSortBoxOrderOption, |
|
|
|
articlesSortBoxOrderOption, |
|
|
@ -72,6 +73,14 @@ class NewsAppSpecificOptions extends NextcloudAppSpecificOptions { |
|
|
|
values: _articleViewTypeValuesSubject, |
|
|
|
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>( |
|
|
|
late final defaultArticlesFilterOption = SelectOption<FilterType>( |
|
|
|
storage: super.storage, |
|
|
|
storage: super.storage, |
|
|
|
category: articlesCategory, |
|
|
|
category: articlesCategory, |
|
|
|