Skip to content

Commit

Permalink
fix: linter warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Wolfgang <[email protected]>
  • Loading branch information
wofferl committed Nov 14, 2024
1 parent 868b3ed commit c7898c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/components/MoveFeed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ export default Vue.extend({
return this.$store.state.folders.folders
},
disableMoveFeed(): boolean {
console.log('feed', this.feed)
console.log('this.folder', this.folder)
return (this.folder !== undefined && this.folder.id === this.feed.folderId)
},
},
Expand Down
13 changes: 6 additions & 7 deletions src/store/feed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Feed } from '../types/Feed'
import { FOLDER_MUTATION_TYPES, FEED_MUTATION_TYPES, FEED_ITEM_MUTATION_TYPES } from '../types/MutationTypes'
import { FolderService } from '../dataservices/folder.service'
import { FEED_ORDER, FEED_UPDATE_MODE, FeedService } from '../dataservices/feed.service'
import { ItemService } from '../dataservices/item.service'

export const FEED_ACTION_TYPES = {
ADD_FEED: 'ADD_FEED',
Expand Down Expand Up @@ -95,12 +94,12 @@ export const actions = {
commit(FEED_MUTATION_TYPES.ADD_FEED, response.data.feeds[0])
} catch (e) {
// TODO: show error to user if failure
console.log(e)
console.error(e)
}
},

async [FEED_ACTION_TYPES.MOVE_FEED](
{ commit }: ActionParams<FeedState>,
state: FeedState,
{ feedId, folderId }: { feedId: number, folderId: number },
) {
// Check that url is resolvable
Expand All @@ -110,12 +109,12 @@ export const actions = {
folderId,
})

// The feed list seems to refresh, but the parent folder does not update in the UI
// We will do this directly by resetting the states of the folders and feeds and fetching them again
// commit(FEED_MUTATION_TYPES.UPDATE_FEED, { id: feedId, folderId })
if (!response) {
console.error('error moving feed %d', feedId)
}
} catch (e) {
// TODO: show error to user if failure
console.log(e)
console.error(e)
}
},

Expand Down

0 comments on commit c7898c6

Please sign in to comment.