disabled short and log rest buttons if user has no edit permission

This commit is contained in:
Stefan Zermatten
2020-11-10 14:22:09 +02:00
parent 3024168e95
commit be7d7f898f

View File

@@ -1,6 +1,7 @@
<template lang="html">
<v-btn
:loading="loading"
:disabled="context.editPermission === false"
outline
style="width: 160px;"
@click="rest"
@@ -16,6 +17,9 @@
import restCreature from '/imports/api/creature/restCreature.js';
export default {
inject: {
context: { default: {} }
},
props:{
type: {
type: String,