57 lines
819 B
Vue
57 lines
819 B
Vue
<script setup>
|
|
|
|
const props = defineProps({
|
|
data: {
|
|
required: true,
|
|
type: Object
|
|
}
|
|
})
|
|
|
|
const {data} = props
|
|
|
|
const changesSaved = ref(true)
|
|
|
|
|
|
|
|
|
|
const default_data = {
|
|
time: 1660335428612,
|
|
blocks: [
|
|
{
|
|
id: "MnGi61oxdF",
|
|
type: "header",
|
|
data: {
|
|
text: "Willkommen im Dokumentations Editor",
|
|
level: 1,
|
|
},
|
|
}
|
|
|
|
],
|
|
version: "1.0.0",
|
|
};
|
|
const newProjectDescription = ref(data|| default_data.value);
|
|
|
|
const saveProjectDescription = async () => {
|
|
|
|
|
|
|
|
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<UButton
|
|
:disabled="false/*newProjectDescription.time === currentProject.description.time*/"
|
|
@click="saveProjectDescription"
|
|
>
|
|
Speichern
|
|
</UButton>
|
|
<client-only><EditorJsOwn v-model="newProjectDescription" /></client-only>
|
|
|
|
|
|
</template>
|
|
|
|
<style scoped>
|
|
|
|
</style>
|