Renames StoredDataUrls to Images

This commit is contained in:
Jonathan Bourdon
2024-08-06 01:04:09 -04:00
parent cb25586d9a
commit a745fcbcc9
5 changed files with 12 additions and 12 deletions

View File

@@ -37,7 +37,7 @@ const props = defineProps({
const emits = defineEmits(['closeRequested'])
const selectedFile = ref("")
const fileUrl = ref(props.creator.storedDataUrls.bannerPictureUrl)
const fileUrl = ref(props.creator.images.banner)
const onFileSelected = () => {
if (selectedFile.value) {
@@ -61,7 +61,7 @@ const publish = async () => {
`/api/creators/${props.creator.id}/banner`,
formData)
props.creator.storedDataUrls.bannerPictureUrl = fileUrl
props.creator.images.banner = fileUrl
emits('closeRequested')
} catch (error) {
console.error(error)

View File

@@ -37,7 +37,7 @@ const props = defineProps({
const emits = defineEmits(['closeRequested'])
const selectedFile = ref("")
const fileUrl = ref(props.creator.storedDataUrls.profilePictureUrl)
const fileUrl = ref(props.creator.images.logo)
const onFileSelected = () => {
if (selectedFile.value) {
@@ -61,7 +61,7 @@ const publish = async () => {
`/api/creators/${props.creator.id}/logo`,
formData)
props.creator.storedDataUrls.profilePictureUrl = fileUrl
props.creator.images.logoUrl = fileUrl
emits('closeRequested')
} catch (error) {
console.error(error)

View File

@@ -69,7 +69,7 @@ const closeDialog = () => {
<button>
<img
@click="openDialog('BannerPicker')"
:src="userStore.creator.storedDataUrls.bannerPictureUrl"
:src="userStore.creator.images.banner"
class="w-full transition duration-200 ease-in-out transform hover:brightness-125"
alt="Tutorial Banner"
>
@@ -85,7 +85,7 @@ const closeDialog = () => {
<img
@click="openDialog('LogoPicker')"
class="custom-border hover:brightness-125 active:bg-gray-600 shadow flex items-center transition duration-200 ease-in-out w-48 h-48 rounded-full"
:src="userStore.creator.storedDataUrls.profilePictureUrl"
:src="userStore.creator.images.logo"
alt="Profile Image"
>
</button>