diff --git a/html/src/app.js b/html/src/app.js
index 8f676ae8..03f4bcf8 100644
--- a/html/src/app.js
+++ b/html/src/app.js
@@ -18468,6 +18468,14 @@ speechSynthesis.getVoices();
}
};
+ $app.methods.toggleAvatarCopying = function () {
+ API.saveCurrentUser({
+ allowAvatarCopying: !API.currentUser.allowAvatarCopying
+ }).then((args) => {
+ return args;
+ });
+ };
+
$app = new Vue($app);
window.$app = $app;
})();
diff --git a/html/src/index.pug b/html/src/index.pug
index 9ca3c3e1..95ec6f63 100644
--- a/html/src/index.pug
+++ b/html/src/index.pug
@@ -1484,11 +1484,18 @@ html
.detail
span.name Date Joined
span.extra(v-text="userDialog.ref.date_joined")
- .x-friend-item(style="cursor:default")
- .detail
- span.name Avatar Copying
- span.extra(v-if="userDialog.ref.allowAvatarCopying" style="color:#67C23A") Allow
- span.extra(v-else style="color:#F56C6C") Deny
+ template(v-if="API.currentUser.id === userDialog.id")
+ .x-friend-item(@click="toggleAvatarCopying")
+ .detail
+ span.name Avatar Cloning
+ 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%")
.detail
span.name Home Location