Made selecting a property from a library use the mobile friendly library
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
<library-and-node
|
<library-and-node
|
||||||
slot="unwrapped-content"
|
slot="unwrapped-content"
|
||||||
style="height: 100%;"
|
style="height: 100%;"
|
||||||
|
selection
|
||||||
@selected="val => node = val"
|
@selected="val => node = val"
|
||||||
/>
|
/>
|
||||||
<template slot="actions">
|
<template slot="actions">
|
||||||
|
|||||||
@@ -60,6 +60,9 @@ export default {
|
|||||||
LibraryBrowser,
|
LibraryBrowser,
|
||||||
LibraryNodeDialog,
|
LibraryNodeDialog,
|
||||||
},
|
},
|
||||||
|
props: {
|
||||||
|
selection: Boolean,
|
||||||
|
},
|
||||||
data(){ return {
|
data(){ return {
|
||||||
organize: false,
|
organize: false,
|
||||||
selected: undefined,
|
selected: undefined,
|
||||||
@@ -86,6 +89,13 @@ export default {
|
|||||||
elementId: `tree-node-${id}`,
|
elementId: `tree-node-${id}`,
|
||||||
data: {
|
data: {
|
||||||
_id: id,
|
_id: id,
|
||||||
|
selection: this.selection,
|
||||||
|
},
|
||||||
|
callback: result => {
|
||||||
|
console.log(result)
|
||||||
|
if (result){
|
||||||
|
this.selected = id;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,23 @@
|
|||||||
slot="actions"
|
slot="actions"
|
||||||
class="layout row justify-end"
|
class="layout row justify-end"
|
||||||
>
|
>
|
||||||
|
<template v-if="selection">
|
||||||
|
<v-btn
|
||||||
|
flat
|
||||||
|
@click="$store.dispatch('popDialogStack', false)"
|
||||||
|
>
|
||||||
|
Cancel
|
||||||
|
</v-btn>
|
||||||
|
<v-spacer />
|
||||||
|
<v-btn
|
||||||
|
flat
|
||||||
|
@click="$store.dispatch('popDialogStack', true)"
|
||||||
|
>
|
||||||
|
Select
|
||||||
|
</v-btn>
|
||||||
|
</template>
|
||||||
<v-btn
|
<v-btn
|
||||||
|
v-else
|
||||||
flat
|
flat
|
||||||
@click="$store.dispatch('popDialogStack')"
|
@click="$store.dispatch('popDialogStack')"
|
||||||
>
|
>
|
||||||
@@ -84,7 +100,8 @@
|
|||||||
props: {
|
props: {
|
||||||
_id: String,
|
_id: String,
|
||||||
startInEditTab: Boolean,
|
startInEditTab: Boolean,
|
||||||
embedded: Boolean, //This dialog is embedded in a page
|
embedded: Boolean, // This dialog is embedded in a page
|
||||||
|
selection: Boolean, // This dialog is being used to select a node
|
||||||
},
|
},
|
||||||
reactiveProvide: {
|
reactiveProvide: {
|
||||||
name: 'context',
|
name: 'context',
|
||||||
|
|||||||
Reference in New Issue
Block a user