Remove extra properties from contents
This commit is contained in:
@@ -155,10 +155,6 @@ const emits = defineEmits(['content-deleted'])
|
|||||||
|
|
||||||
const contentId = computed(() => props.content.id)
|
const contentId = computed(() => props.content.id)
|
||||||
const creatorId = computed(() => props.content.createdBy)
|
const creatorId = computed(() => props.content.createdBy)
|
||||||
const creatorName = computed(() => props.content.createdByName)
|
|
||||||
const creatorLogo = computed(() => props.content.createdByPortraitUrl)
|
|
||||||
const colorMenu = computed(() => props.content.colorMenu)
|
|
||||||
const colorAccent = computed(() => props.content.colorAccent)
|
|
||||||
|
|
||||||
const authStore = useAuthStore();
|
const authStore = useAuthStore();
|
||||||
const messageStore = useMessageStore();
|
const messageStore = useMessageStore();
|
||||||
|
|||||||
@@ -155,10 +155,6 @@ const emits = defineEmits(['content-deleted'])
|
|||||||
|
|
||||||
const contentId = computed(() => props.content.id)
|
const contentId = computed(() => props.content.id)
|
||||||
const creatorId = computed(() => props.content.createdBy)
|
const creatorId = computed(() => props.content.createdBy)
|
||||||
const creatorName = computed(() => props.content.createdByName)
|
|
||||||
const creatorLogo = computed(() => props.content.createdByPortraitUrl)
|
|
||||||
const colorMenu = computed(() => props.content.colorMenu)
|
|
||||||
const colorAccent = computed(() => props.content.colorAccent)
|
|
||||||
|
|
||||||
const authStore = useAuthStore()
|
const authStore = useAuthStore()
|
||||||
const creatorIsCurrentUser = computed(() => authStore.isAuthenticated && authStore.userId === creatorId.value)
|
const creatorIsCurrentUser = computed(() => authStore.isAuthenticated && authStore.userId === creatorId.value)
|
||||||
|
|||||||
Reference in New Issue
Block a user