Renames StoredDataUrls to Images
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user