feat(fe smartblock): started working on smart blocks editor

This commit is contained in:
Marco Cavalli 2025-03-25 10:57:19 +01:00
parent 8ba2731c31
commit 08c50d6a97
7 changed files with 516 additions and 3 deletions

View file

@ -1,9 +1,9 @@
<script setup lang="ts">
import Table from "@/components/content/partials/Table.vue";
import PlaylistEditor from "@/components/content/partials/PlaylistEditor.vue";
import ConfirmDelete from "@/components/content/partials/dialogs/ConfirmDelete.vue";
import {onBeforeMount, reactive, ref, watch} from "vue";
import {blocks_page} from "@/composables/content/blocks_page.ts";
import SmartBlockEditor from "@partials/SmartBlockEditor.vue";
const props = defineProps({
hideColumns: {
@ -101,7 +101,7 @@ watch(search, (newValue, oldValue) => {
</script>
<template>
<PlaylistEditor
<SmartBlockEditor
v-if="itemEdited.id !== null && !dialog.open"
:item="itemEdited"
@go-back="resetItemEdited"
@ -125,7 +125,7 @@ watch(search, (newValue, oldValue) => {
>
<template v-slot:header-buttons>
<v-btn color="primary" @click="edit(0)">
Crea una nuova Playlist
Crea un nuovo blocco dinamico
</v-btn>
</template>
<template v-slot:dialog>