Fixed missing Creature imports
This commit is contained in:
@@ -1,21 +1,27 @@
|
|||||||
<template lang="html">
|
<template lang="html">
|
||||||
<dialog-base>
|
<dialog-base>
|
||||||
<div slot="toolbar">
|
<div slot="toolbar">
|
||||||
Creature Form Dialog
|
Creature Form Dialog
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<creature-form :model="model" @change="change"/>
|
<creature-form
|
||||||
</div>
|
:model="model"
|
||||||
<v-spacer slot="actions"/>
|
@change="change"
|
||||||
<v-btn
|
/>
|
||||||
slot="actions"
|
</div>
|
||||||
flat
|
<v-spacer slot="actions" />
|
||||||
@click="$store.dispatch('popDialogStack')"
|
<v-btn
|
||||||
>Done</v-btn>
|
slot="actions"
|
||||||
|
flat
|
||||||
|
@click="$store.dispatch('popDialogStack')"
|
||||||
|
>
|
||||||
|
Done
|
||||||
|
</v-btn>
|
||||||
</dialog-base>
|
</dialog-base>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import Creatures from '/imports/api/creature/Creatures.js';
|
||||||
import {updateCreature} from '/imports/api/creature/Creatures.js';
|
import {updateCreature} from '/imports/api/creature/Creatures.js';
|
||||||
import DialogBase from '/imports/ui/dialogStack/DialogBase.vue';
|
import DialogBase from '/imports/ui/dialogStack/DialogBase.vue';
|
||||||
import CreatureForm from '/imports/ui/creature/CreatureForm.vue'
|
import CreatureForm from '/imports/ui/creature/CreatureForm.vue'
|
||||||
|
|||||||
@@ -1,25 +1,37 @@
|
|||||||
<template lang="html">
|
<template lang="html">
|
||||||
<dialog-base>
|
<dialog-base>
|
||||||
<div slot="toolbar">
|
<div slot="toolbar">
|
||||||
Delete Character
|
Delete Character
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<p v-if="name">
|
<p v-if="name">
|
||||||
Type "{{name}}" to permanenetly delete the character
|
Type "{{ name }}" to permanenetly delete the character
|
||||||
</p>
|
</p>
|
||||||
<v-text-field v-if="name" v-model="inputName"/>
|
<v-text-field
|
||||||
<v-btn v-show="nameMatch" class="primary" @click="remove">Delete forever</v-btn>
|
v-if="name"
|
||||||
</div>
|
v-model="inputName"
|
||||||
<v-spacer slot="actions"/>
|
/>
|
||||||
<v-btn
|
<v-btn
|
||||||
slot="actions"
|
v-show="nameMatch"
|
||||||
flat
|
class="primary"
|
||||||
@click="$store.dispatch('popDialogStack')"
|
@click="remove"
|
||||||
>Cancel</v-btn>
|
>
|
||||||
</dialog-base>
|
Delete forever
|
||||||
|
</v-btn>
|
||||||
|
</div>
|
||||||
|
<v-spacer slot="actions" />
|
||||||
|
<v-btn
|
||||||
|
slot="actions"
|
||||||
|
flat
|
||||||
|
@click="$store.dispatch('popDialogStack')"
|
||||||
|
>
|
||||||
|
Cancel
|
||||||
|
</v-btn>
|
||||||
|
</dialog-base>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import Creatures from '/imports/api/creature/Creatures.js';
|
||||||
import DialogBase from '/imports/ui/dialogStack/DialogBase.vue';
|
import DialogBase from '/imports/ui/dialogStack/DialogBase.vue';
|
||||||
import removeCreature from '/imports/api/creature/removeCreature.js';
|
import removeCreature from '/imports/api/creature/removeCreature.js';
|
||||||
|
|
||||||
@@ -49,7 +61,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
remove(){
|
remove(){
|
||||||
removeCreature.call({charId: this.id}, (error, result) => {
|
removeCreature.call({charId: this.id}, (error) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user