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