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

When receiving a sharing, Owner's status is invitation sent #1332

Open
Ldoppea opened this issue Aug 9, 2021 · 0 comments
Open

When receiving a sharing, Owner's status is invitation sent #1332

Ldoppea opened this issue Aug 9, 2021 · 0 comments
Labels
bug Something isn't working cozy-sharing

Comments

@Ldoppea
Copy link
Member

Ldoppea commented Aug 9, 2021

As he is the Owner, his status shouldn't be invitation sent but its instance (ex: http://cozy2.localhost:8080) ore something else?

image

This is related to the calculation method (see text variable) :

const Status = ({ status, isMe, instance }) => {
const { t } = useI18n()
const isSendingEmail = !isMe && status === 'mail-not-sent'
const isReady = isMe || status === 'ready'
let text, icon
if (isReady) {
text = instance
icon = ToTheCloudIcon
} else if (isSendingEmail) {
text = t('Share.status.mail-not-sent')
icon = PaperplaneIcon
} else {
const supportedStatus = ['pending', 'seen']
text = supportedStatus.includes(status)
? t(`Share.status.${status}`)
: t('Share.status.pending')
icon = status === 'seen' ? EyeIcon : PaperplaneIcon
}

@Ldoppea Ldoppea added bug Something isn't working cozy-sharing labels Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cozy-sharing
Projects
None yet
Development

No branches or pull requests

1 participant