Skip to content

Commit

Permalink
clean up comments
Browse files Browse the repository at this point in the history
Signed-off-by: Devlin Junker <[email protected]>
  • Loading branch information
devlinjunker committed Aug 8, 2023
1 parent 9f5070c commit b96ad27
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions src/components/AddFeed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ type AddFeedState = {
createNewFolder: boolean;
withBasicAuth: boolean;
// from props
feedUrl?: String;
feedUser?: String;
feedPassword?: String;
Expand Down Expand Up @@ -154,6 +153,9 @@ export default Vue.extend({
}

Check warning on line 153 in src/components/AddFeed.vue

View workflow job for this annotation

GitHub Actions / eslint node

Missing trailing comma

Check warning on line 153 in src/components/AddFeed.vue

View workflow job for this annotation

GitHub Actions / eslint

Missing trailing comma
},
methods: {
/**
* Adds a New Feed via the Vuex Store
*/
async addFeed() {
this.$store.dispatch(ACTIONS.ADD_FEED, {
feedReq: {
Expand All @@ -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;
}
},
})
Expand Down

0 comments on commit b96ad27

Please sign in to comment.