mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Toggle avatar cloning
This commit is contained in:
@@ -18468,6 +18468,14 @@ speechSynthesis.getVoices();
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$app.methods.toggleAvatarCopying = function () {
|
||||||
|
API.saveCurrentUser({
|
||||||
|
allowAvatarCopying: !API.currentUser.allowAvatarCopying
|
||||||
|
}).then((args) => {
|
||||||
|
return args;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
$app = new Vue($app);
|
$app = new Vue($app);
|
||||||
window.$app = $app;
|
window.$app = $app;
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -1484,11 +1484,18 @@ html
|
|||||||
.detail
|
.detail
|
||||||
span.name Date Joined
|
span.name Date Joined
|
||||||
span.extra(v-text="userDialog.ref.date_joined")
|
span.extra(v-text="userDialog.ref.date_joined")
|
||||||
.x-friend-item(style="cursor:default")
|
template(v-if="API.currentUser.id === userDialog.id")
|
||||||
.detail
|
.x-friend-item(@click="toggleAvatarCopying")
|
||||||
span.name Avatar Copying
|
.detail
|
||||||
span.extra(v-if="userDialog.ref.allowAvatarCopying" style="color:#67C23A") Allow
|
span.name Avatar Cloning
|
||||||
span.extra(v-else style="color:#F56C6C") Deny
|
span.extra(v-if="userDialog.ref.allowAvatarCopying" style="color:#67C23A") Allow
|
||||||
|
span.extra(v-else style="color:#F56C6C") Deny
|
||||||
|
template(v-else)
|
||||||
|
.x-friend-item(style="cursor:default")
|
||||||
|
.detail
|
||||||
|
span.name Avatar Cloning
|
||||||
|
span.extra(v-if="userDialog.ref.allowAvatarCopying" style="color:#67C23A") Allow
|
||||||
|
span.extra(v-else style="color:#F56C6C") Deny
|
||||||
.x-friend-item(v-if="userDialog.ref.id === API.currentUser.id && API.currentUser.homeLocation" @click="showWorldDialog(API.currentUser.homeLocation)" style="width:100%")
|
.x-friend-item(v-if="userDialog.ref.id === API.currentUser.id && API.currentUser.homeLocation" @click="showWorldDialog(API.currentUser.homeLocation)" style="width:100%")
|
||||||
.detail
|
.detail
|
||||||
span.name Home Location
|
span.name Home Location
|
||||||
|
|||||||
Reference in New Issue
Block a user