mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
rollback
This commit is contained in:
parent
daddb5b63a
commit
119d024a2e
@ -49,7 +49,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { computed, watch } from 'vue'
|
||||
import { computed, watch, ref } from 'vue'
|
||||
import { useQuery } from '@vue/apollo-composable'
|
||||
import { useStore } from 'vuex'
|
||||
import { useAppToast } from '@/composables/useToast'
|
||||
@ -62,12 +62,20 @@ const { result, loading, refetch, error } = useQuery(projectBrandingsQuery, null
|
||||
fetchPolicy: 'network-only',
|
||||
})
|
||||
|
||||
const projectBrandings = computed(() => result.value?.projectBrandings || [])
|
||||
const projectBrandings = ref([])
|
||||
|
||||
const isAddButtonDisabled = computed(() => {
|
||||
return projectBrandings.value.some((item) => item.id === undefined)
|
||||
})
|
||||
|
||||
watch(
|
||||
result,
|
||||
() => {
|
||||
projectBrandings.value = result.value?.projectBrandings || []
|
||||
},
|
||||
{ immediate: true },
|
||||
)
|
||||
|
||||
function createEntry() {
|
||||
projectBrandings.value.push({
|
||||
id: undefined,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user