Skip to content

Commit

Permalink
fix: old lines clean & function's info update
Browse files Browse the repository at this point in the history
Nothing special
  • Loading branch information
DeadCreator committed Jan 6, 2025
1 parent af2745c commit f66af35
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/presentation/components/team/RoleSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { NoteId } from '@/domain/entities/Note.ts';
import { computed, ref } from 'vue';
import useNoteSettings from '@/application/services/useNoteSettings.ts';
import { useAppState } from '@/application/services/useAppState';
import { useI18n } from 'vue-i18n';
import { ContextMenuItem, DefaultItem, Select } from 'codex-ui/vue';
/**
Expand Down Expand Up @@ -51,10 +50,10 @@ const { changeRole } = useNoteSettings();
const { user } = useAppState();
const { t } = useI18n();
/**
* Updates the user role if it has been changed
*
* @param updatedRole - new role needed to set
*/
async function updateMemberRole(updatedRole: DefaultItem | any) {
changeRole(props.noteId, props.teamMember.user.id, MemberRole[updatedRole.title as keyof typeof MemberRole]);
Expand Down

0 comments on commit f66af35

Please sign in to comment.