Skip to content

Commit

Permalink
fix frontend lint
Browse files Browse the repository at this point in the history
  • Loading branch information
garrrikkotua committed Oct 7, 2024
1 parent 78ee38d commit 795bd4a
Showing 1 changed file with 3 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,14 +304,6 @@ const rules = computed(() => {
return {};
});

const addGroup = () => {
form.groups.push({});
};

const removeGroup = (index) => {
form.groups.splice(index, 1);
};

const $v = useVuelidate(rules, form, { $stopPropagation: true });

const validateAccount = async () => {
Expand Down Expand Up @@ -377,15 +369,6 @@ const reverifyAccount = () => {
isAPIConnectionValid.value = false;
};

const validateGroup = async (groupName) => {
try {
await IntegrationService.groupsioVerifyGroup(groupName, cookie.value);
return true;
} catch (e) {
return false;
}
};

const onBlurEmail = () => {
$v.value.email.$touch();
canVerify();
Expand Down Expand Up @@ -533,15 +516,18 @@ const connect = async () => {
};

const toggleAllSubgroups = (group) => {
// eslint-disable-next-line no-param-reassign
group.mainGroup.selected = group.allSubgroupsSelected;
group.subGroups.forEach((subGroup) => {
// eslint-disable-next-line no-param-reassign
subGroup.selected = group.allSubgroupsSelected;
});
updateSelectedGroups();
};

const updateSelectedGroups = () => {
Object.values(userSubscriptions.value).forEach((group) => {
// eslint-disable-next-line no-param-reassign
group.allSubgroupsSelected = group.mainGroup.selected
&& group.subGroups.every((subGroup) => subGroup.selected);
});
Expand Down

0 comments on commit 795bd4a

Please sign in to comment.