From b96ad27202d1c02941f09ce99c06bc6b740a820a Mon Sep 17 00:00:00 2001 From: Devlin Junker Date: Mon, 7 Aug 2023 18:00:02 -0700 Subject: [PATCH] clean up comments Signed-off-by: Devlin Junker --- src/components/AddFeed.vue | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/src/components/AddFeed.vue b/src/components/AddFeed.vue index 6151996ba1..91886fc055 100644 --- a/src/components/AddFeed.vue +++ b/src/components/AddFeed.vue @@ -117,7 +117,6 @@ type AddFeedState = { createNewFolder: boolean; withBasicAuth: boolean; - // from props feedUrl?: String; feedUser?: String; feedPassword?: String; @@ -154,6 +153,9 @@ export default Vue.extend({ } }, methods: { + /** + * Adds a New Feed via the Vuex Store + */ async addFeed() { this.$store.dispatch(ACTIONS.ADD_FEED, { feedReq: { @@ -167,24 +169,30 @@ export default Vue.extend({ this.$emit('close'); }, + /** + * Checks if Feed Url exists in Vuex Store Feeds + */ feedUrlExists(): boolean { - for (let feed of this.$store.state.feeds.feeds) { - if (feed.url === this.feedUrl) { - return true; - } + for (let feed of this.$store.state.feeds.feeds) { + if (feed.url === this.feedUrl) { + return true; } + } - return false; + return false; }, + /** + * Check if Folder Name exists in Vuex Store Folders + */ folderNameExists(): boolean { - if (this.createNewFolder) { - for (let folder of this.$store.state.folders.folders) { - if (folder.name === this.newFolderName) { - return true; - } - } + if (this.createNewFolder) { + for (let folder of this.$store.state.folders.folders) { + if (folder.name === this.newFolderName) { + return true; + } } - return false; + } + return false; } }, })