Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avatar image #9

Open
matibaski opened this issue Mar 1, 2021 · 1 comment
Open

Avatar image #9

matibaski opened this issue Mar 1, 2021 · 1 comment

Comments

@matibaski
Copy link

Currently, you're giving the option to insert an avatar by setting a url/path to the image.
Using nuxt, I'd like to load from my assets folder. Either by require() or per absolute path:

data: () => ({
    attendants: [
        {
            app: 'whatsapp',
            label: 'Partner',
            name: 'John Doe',
            number: '1234567890',
            avatar: {
                src: require('@/assets/John_Doe.jpg'),
                // OR
                src: '@/assets/John_Doe.jpg',
                alt: 'John Doe avatar'
            }
        }
    ]
})

Which results in following in the frontend:

<img src="[object Object]" alt="John Doe avatar">
resp.
<img src="~/assets/John_Doe.jpg" alt="John Doe avatar">

It looks like your plugin surpasses the assets functionality. Not a major issue, but still an issue :)

@ktquez
Copy link
Owner

ktquez commented Mar 22, 2021

I will do some tests and submit a new version that supports it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants