diff --git a/app/imports/client/ui/creature/CreatureForm.vue b/app/imports/client/ui/creature/CreatureForm.vue index ee199b90..bd5426ea 100644 --- a/app/imports/client/ui/creature/CreatureForm.vue +++ b/app/imports/client/ui/creature/CreatureForm.vue @@ -2,18 +2,21 @@
@@ -62,6 +71,7 @@ min="0" max="1" step="0.1" + :disabled="!editPermission" :value="model.settings.hitDiceResetMultiplier" @change="(value, ack) => $emit('change', {path: ['settings','hitDiceResetMultiplier'], value, ack})" /> @@ -69,6 +79,7 @@ label="Discord Webhook URL" hint="This creature's logs will be posted to the discord channel" placeholder="https://discordapp.com/api/webhooks//" + :disabled="!editPermission" :value="model.settings.discordWebhook" @change="(value, ack) => $emit('change', {path: ['settings','discordWebhook'], value, ack})" /> @@ -96,12 +107,13 @@ + + + + mdi-account + + + + + {{ ownerName }} + + + Sheet owner + + + + + + + mdi-cancel + Unshare with me + + @@ -47,37 +76,31 @@ Print - + + + + mdi-pencil + Edit details + + + + + mdi-share-variant + Sharing + + + mdi-delete - Unshare with me + Delete @@ -266,6 +289,15 @@ export default { return false; } }, + isOwner() { + if (!this.creature) return; + return Meteor.userId() === this.creature.owner; + }, + ownerName() { + if (!this.creature) return; + const username = Meteor.users.findOne(this.creature.owner)?.username; + return username; + }, }, } diff --git a/app/imports/client/ui/library/LibraryCollectionEditDialog.vue b/app/imports/client/ui/library/LibraryCollectionEditDialog.vue index 11977d30..90649d86 100644 --- a/app/imports/client/ui/library/LibraryCollectionEditDialog.vue +++ b/app/imports/client/ui/library/LibraryCollectionEditDialog.vue @@ -8,6 +8,7 @@ mdi-share-variant @@ -15,12 +16,32 @@ mdi-delete