- Cataloghi
- Import ed Export Pagine - ObjectID sostituita con ObjectId
This commit is contained in:
@@ -10,7 +10,7 @@ import { CMyElem } from '@/components/CMyElem'
|
||||
import { CTitleBanner } from '@/components/CTitleBanner'
|
||||
import { CMyEditElem } from '@/components/CMyEditElem'
|
||||
import { CMyPageElem2 } from '@/components/CMyPageElem2'
|
||||
import { CExportPage } from '@/components/CExportPage'
|
||||
import { CExportImportPage } from '@src/components/CExportImportPage'
|
||||
|
||||
import { CImgTitle } from '../CImgTitle/index'
|
||||
import { CTitle } from '../CTitle/index'
|
||||
@@ -25,7 +25,7 @@ export default defineComponent({
|
||||
name: 'CMyPageElem',
|
||||
components: {
|
||||
LandingFooter, CImgTitle, CTitle, CMyElem,
|
||||
CMyEditElem, CMyPageElem2, CTitleBanner, CExportPage,
|
||||
CMyEditElem, CMyPageElem2, CTitleBanner, CExportImportPage,
|
||||
},
|
||||
props: {
|
||||
title: String,
|
||||
@@ -79,6 +79,7 @@ export default defineComponent({
|
||||
const mywidthEditor = ref(400)
|
||||
|
||||
const showexportPage = ref(false)
|
||||
const showimportPage = ref(false)
|
||||
|
||||
const editOn = computed({
|
||||
get(): boolean {
|
||||
@@ -199,6 +200,7 @@ export default defineComponent({
|
||||
deleteElem,
|
||||
duplicatePage,
|
||||
showexportPage,
|
||||
showimportPage,
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
@toggleSize="toggleSize"
|
||||
@dupPage="duplicatePage"
|
||||
@expPage="showexportPage = !showexportPage"
|
||||
@impPage="showimportPage = !showimportPage"
|
||||
>
|
||||
</CMyEditElem>
|
||||
</q-drawer>
|
||||
@@ -177,7 +178,22 @@
|
||||
</q-toolbar>
|
||||
<q-card-section class="q-pa-xs inset-shadow">
|
||||
<br>
|
||||
<CExportPage :idPage="selElem.idPage" :nomefile="`esporta_${rec.path}.json`"> </CExportPage>
|
||||
<CExportImportPage :idPage="rec._id" :nomefile="`esporta_${rec.path}.json`" :esporta="true"> </CExportImportPage>
|
||||
<br>
|
||||
</q-card-section>
|
||||
</q-card>
|
||||
</q-dialog>
|
||||
<q-dialog v-model="showimportPage">
|
||||
<q-card class="dialog_card">
|
||||
<q-toolbar class="bg-primary text-white">
|
||||
<q-toolbar-title>
|
||||
Esporta Pagina
|
||||
</q-toolbar-title>
|
||||
<q-btn flat round color="white" icon="close" v-close-popup></q-btn>
|
||||
</q-toolbar>
|
||||
<q-card-section class="q-pa-xs inset-shadow">
|
||||
<br>
|
||||
<CExportImportPage :idPage="rec._id" :nomefile="`esporta_${rec.path}.json`"> </CExportImportPage>
|
||||
<br>
|
||||
</q-card-section>
|
||||
</q-card>
|
||||
|
||||
Reference in New Issue
Block a user