Introduced Plants Some Polishing Some Resources got Query Params Extended GlobalSearch.vue Removed Jobs
64 lines
1.1 KiB
Vue
64 lines
1.1 KiB
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 () => {
|
|
//Update Project Description
|
|
/*const {data:updateData,error:updateError} = await supabase
|
|
.from("projects")
|
|
.update({description: newProjectDescription.value})
|
|
.eq('id',currentProject.id)
|
|
.select()
|
|
|
|
console.log(updateData)
|
|
console.log(updateError)*/
|
|
|
|
|
|
|
|
};
|
|
</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> |