mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-20 07:13:51 +02:00
remove unnecessary props and event emissions in Sidebar components
This commit is contained in:
@@ -72,8 +72,7 @@
|
||||
<friend-item
|
||||
:friend="item.row.friend"
|
||||
:style="item.row.itemStyle"
|
||||
:is-group-by-instance="item.row.isGroupByInstance"
|
||||
@confirm-delete-friend="confirmDeleteFriend" />
|
||||
:is-group-by-instance="item.row.isGroupByInstance" />
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
@@ -105,7 +104,6 @@
|
||||
import Location from '../../../components/Location.vue';
|
||||
import configRepository from '../../../service/config';
|
||||
|
||||
const emit = defineEmits(['confirm-delete-friend']);
|
||||
const { t } = useI18n();
|
||||
|
||||
const friendStore = useFriendStore();
|
||||
@@ -479,10 +477,6 @@
|
||||
saveFriendsGroupStates();
|
||||
}
|
||||
|
||||
function confirmDeleteFriend(friend) {
|
||||
emit('confirm-delete-friend', friend);
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
scrollViewportRef.value = listRootRef.value?.closest('[data-slot="scroll-area-viewport"]') ?? null;
|
||||
nextTick(() => {
|
||||
|
||||
Reference in New Issue
Block a user