Skip to content

Commit

Permalink
fix: creating new folder messes up the sidebar list since the current…
Browse files Browse the repository at this point in the history
… changes, also it uses the wrong icon after creating

Signed-off-by: Wolfgang <[email protected]>
  • Loading branch information
wofferl authored and Grotax committed Nov 7, 2024
1 parent f1485d0 commit 39679c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@
</template>
<template #icon>
<FolderAlertIcon v-if="isFolder(topLevelItem) && hasErrorFeeds(topLevelItem)" v-tooltip="t('news', 'Has feeds with errors!')" style="width: 22px; color: red" />
<FolderIcon v-if="topLevelItem.feedCount !== undefined && !hasErrorFeeds(topLevelItem)" style="width:22px" />
<RssIcon v-if="topLevelItem.feedCount === undefined && !topLevelItem.faviconLink" />
<span v-if="topLevelItem.feedCount === undefined && topLevelItem.faviconLink" style="height: 16px; width: 16px; background-size: contain;" :style="{ 'backgroundImage': 'url(' + topLevelItem.faviconLink + ')' }" />
<FolderIcon v-if="isFolder(topLevelItem) && !hasErrorFeeds(topLevelItem)" style="width:22px" />
<RssIcon v-if="!isFolder(topLevelItem) && !topLevelItem.faviconLink" />
<span v-if="!isFolder(topLevelItem) && topLevelItem.faviconLink" style="height: 16px; width: 16px; background-size: contain;" :style="{ 'backgroundImage': 'url(' + topLevelItem.faviconLink + ')' }" />
</template>
<template #counter>
<NcCounterBubble v-if="topLevelItem.updateErrorCount > 0"
Expand Down
2 changes: 1 addition & 1 deletion src/store/folder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const mutations = {
state: FolderState,
folders: Folder[],
) {
state.folders = [...folders]
state.folders = [...state.folders, ...folders]
},

[FOLDER_MUTATION_TYPES.DELETE_FOLDER](
Expand Down

0 comments on commit 39679c4

Please sign in to comment.