Added archive dialog, empty for now

This commit is contained in:
Stefan Zermatten
2021-06-21 16:42:47 +02:00
parent 66dc0ee34f
commit e96755927f
3 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<template lang="html">
<dialog-base>
<div>
TODO
</div>
<v-spacer slot="actions" />
<v-btn
slot="actions"
text
@click="$store.dispatch('popDialogStack')"
>
Done
</v-btn>
</dialog-base>
</template>
<script lang="js">
import DialogBase from '/imports/ui/dialogStack/DialogBase.vue';
export default {
components: {
DialogBase,
},
}
</script>
<style lang="css" scoped>
</style>

View File

@@ -7,6 +7,15 @@
<template v-else>
{{ characterSlots }}
</template>
<v-btn
icon
data-id="open-archive-btn"
@click="openArchive"
>
<v-icon>
mdi-archive
</v-icon>
</v-btn>
</div>
</template>
@@ -23,6 +32,14 @@ export default {
return getUserTier(Meteor.userId()).characterSlots;
}
},
methods: {
openArchive(){
this.$store.commit('pushDialogStack', {
component: 'archive-dialog',
elementId: 'open-archive-btn',
});
}
}
}
</script>

View File

@@ -1,3 +1,4 @@
import ArchiveDialog from '/imports/ui/creature/archive/ArchiveDialog.vue';
import CastSpellWithSlotDialog from '/imports/ui/properties/components/spells/CastSpellWithSlotDialog.vue';
import CreatureFormDialog from '/imports/ui/creature/CreatureFormDialog.vue';
import CreaturePropertyCreationDialog from '/imports/ui/creature/creatureProperties/CreaturePropertyCreationDialog.vue';
@@ -22,6 +23,7 @@ import TierTooLowDialog from '/imports/ui/user/TierTooLowDialog.vue';
import UsernameDialog from '/imports/ui/user/UsernameDialog.vue';
export default {
ArchiveDialog,
CastSpellWithSlotDialog,
CreatureFormDialog,
CreaturePropertyCreationDialog,