diff --git a/CHANGELOG.md b/CHANGELOG.md index 83d22d7ca..041bfe156 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,11 +9,16 @@ You can also check [on GitHub](https://github.com/nextcloud/news/releases), the ### Changed - Performance improvements on item list - Rework feed and global sort ordering +- Add 'r' shortkey to refresh feed and item list +- Show automatically new news items on VueJS implementation (#2502) +- Show when feeds and folder have errors +- Add keyboard shortcuts 'd', 'f', 'c' and 'v' to switch between feeds and folders ### Fixed - starred items in a feed can prevent further scrolling - j shortcut doesn't load more items in infinite scroll (#2847) - Feed ordering uses wrong values (#2846) +- Unread Counter becomes negative (#2839) # Releases ## [25.0.0-alpha12] - 2024-10-23 diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index a1113e2a5..8462d3ba5 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -81,7 +81,8 @@ public function index(): TemplateResponse 'oldestFirst', 'showAll', 'lastViewedFeedId', - 'lastViewedFeedType' + 'lastViewedFeedType', + 'disableRefresh' ]; foreach ($usersettings as $setting) { @@ -155,6 +156,7 @@ public function settings(): array * @param bool $preventReadOnScroll * @param bool $oldestFirst * @param bool $compactExpand + * @param bool $disableRefresh */ #[NoAdminRequired] public function updateSettings( @@ -162,7 +164,8 @@ public function updateSettings( bool $compact, bool $preventReadOnScroll, bool $oldestFirst, - bool $compactExpand + bool $compactExpand, + bool $disableRefresh ): void { $settings = [ 'showAll' => $showAll, @@ -170,6 +173,7 @@ public function updateSettings( 'preventReadOnScroll' => $preventReadOnScroll, 'oldestFirst' => $oldestFirst, 'compactExpand' => $compactExpand, + 'disableRefresh' => $disableRefresh, ]; foreach ($settings as $setting => $value) { diff --git a/src/components/MoveFeed.vue b/src/components/MoveFeed.vue index 4d6e90eb0..ed2b05964 100644 --- a/src/components/MoveFeed.vue +++ b/src/components/MoveFeed.vue @@ -73,31 +73,13 @@ export default Vue.extend({ async moveFeed() { const data = { feedId: this.feed.id, - folderId: this.folder ? this.folder.id : null, + folderId: this.folder ? this.folder.id : 0, } await this.$store.dispatch(ACTIONS.MOVE_FEED, data) - await this.reloadFeeds() + await this.$store.dispatch(ACTIONS.FETCH_FEEDS) this.$emit('close') }, - async reloadFeeds() { - // Clear feeds and folders - const currentState = this.$store.state - const newState = { - ...currentState, - folders: { - folders: [], - }, - feeds: { - feeds: [], - }, - } - this.$store.replaceState(newState) - - // Fetch feeds and folders - await this.$store.dispatch(ACTIONS.FETCH_FOLDERS) - await this.$store.dispatch(ACTIONS.FETCH_FEEDS) - }, }, }) diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 6e65a1b8c..acebf2f2d 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -29,12 +29,12 @@ - @@ -53,7 +53,9 @@ @@ -119,6 +136,10 @@ + +