disabled short and log rest buttons if user has no edit permission
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user