mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
Fix shift remove local avatar favorites
This commit is contained in:
@@ -104,7 +104,7 @@
|
|||||||
icon="el-icon-close"
|
icon="el-icon-close"
|
||||||
circle
|
circle
|
||||||
style="color: #f56c6c; margin-left: 5px"
|
style="color: #f56c6c; margin-left: 5px"
|
||||||
@click.stop="removeLocalAvatarFavorite" />
|
@click.stop="removeLocalAvatarFavorite(favorite.id, favoriteGroupName)" />
|
||||||
<el-button
|
<el-button
|
||||||
v-else
|
v-else
|
||||||
type="default"
|
type="default"
|
||||||
@@ -126,7 +126,7 @@
|
|||||||
icon="el-icon-close"
|
icon="el-icon-close"
|
||||||
size="mini"
|
size="mini"
|
||||||
style="margin-left: 5px"
|
style="margin-left: 5px"
|
||||||
@click.stop="removeLocalAvatarFavorite"></el-button>
|
@click.stop="removeLocalAvatarFavorite(favorite.id, favoriteGroupName)"></el-button>
|
||||||
<el-button
|
<el-button
|
||||||
v-else
|
v-else
|
||||||
type="text"
|
type="text"
|
||||||
@@ -181,6 +181,13 @@
|
|||||||
const smallThumbnail = computed(
|
const smallThumbnail = computed(
|
||||||
() => localFavFakeRef.value.thumbnailImageUrl.replace('256', '128') || localFavFakeRef.value.thumbnailImageUrl
|
() => localFavFakeRef.value.thumbnailImageUrl.replace('256', '128') || localFavFakeRef.value.thumbnailImageUrl
|
||||||
);
|
);
|
||||||
|
const favoriteGroupName = computed(() => {
|
||||||
|
if (typeof props.group === 'string') {
|
||||||
|
return props.group;
|
||||||
|
} else {
|
||||||
|
return props.group?.name;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
function moveFavorite(ref, group, type) {
|
function moveFavorite(ref, group, type) {
|
||||||
favoriteRequest.deleteFavorite({ objectId: ref.id }).then(() => {
|
favoriteRequest.deleteFavorite({ objectId: ref.id }).then(() => {
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
@click.stop="selectAvatarWithConfirmation(favorite.id)"></el-button>
|
@click.stop="selectAvatarWithConfirmation(favorite.id)"></el-button>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<template v-if="cachedFavoritesByObjectId.has(favorite.id)">
|
<template v-if="cachedFavoritesByObjectId.has(favorite.id)">
|
||||||
<el-tooltip placement="right" content="Unfavorite" :disabled="hideTooltips">
|
<el-tooltip placement="right" content="Favorite" :disabled="hideTooltips">
|
||||||
<el-button
|
<el-button
|
||||||
type="default"
|
type="default"
|
||||||
icon="el-icon-star-on"
|
icon="el-icon-star-on"
|
||||||
|
|||||||
Reference in New Issue
Block a user