Moved UI to client folder to fix HMR

This commit is contained in:
Stefan Zermatten
2022-11-19 17:51:50 +02:00
parent 060b5f93ca
commit e3644eb9e8
358 changed files with 1069 additions and 1066 deletions

View File

@@ -0,0 +1,45 @@
<template lang="html">
<dialog-base>
<v-toolbar-title slot="toolbar">
Select new location
</v-toolbar-title>
<library-and-node
slot="unwrapped-content"
style="height: 100%;"
selection
@selected="val => node = val"
/>
<template slot="actions">
<v-spacer />
<v-btn
text
color="primary"
@click="$store.dispatch('popDialogStack', node._id)"
>
{{ action || 'Move' }}
</v-btn>
</template>
</dialog-base>
</template>
<script lang="js">
import DialogBase from '/imports/client/ui/dialogStack/DialogBase.vue';
import LibraryAndNode from '/imports/client/ui/library/LibraryAndNode.vue';
export default {
components: {
DialogBase,
LibraryAndNode,
},
props: {
action: {
type: String,
default: undefined,
},
},
data() {
return {
node: undefined,
};
},
};
</script>