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

Viewer FileInfo missing attributes #7764

Closed
skjnldsv opened this issue Aug 17, 2022 · 2 comments · Fixed by #7776
Closed

Viewer FileInfo missing attributes #7764

skjnldsv opened this issue Aug 17, 2022 · 2 comments · Fixed by #7776

Comments

@skjnldsv
Copy link
Member

vue.runtime.esm.js:4560 [Vue warn]: Missing required prop: "etag"
found in
---> <Images> at src/components/Images.vue
       <Modal>
         <Viewer> at src/views/Viewer.vue
           <Root>

On a secondary note, if you want to be able to use the editor in Viewer, please also provide the permission attribute

OCA.Viewer.open({
// Viewer expects an internal absolute path starting with "/".
path: this.internalAbsolutePath,
list: [
{
fileid: parseInt(this.id, 10),
filename: this.internalAbsolutePath,
basename: this.name,
mime: this.mimetype,
hasPreview: this.previewAvailable === 'yes',
},
],
})

@AndyScherzinger AndyScherzinger moved this to 🧭 Planning evaluation (don't pick) in 💬 Talk team Aug 17, 2022
@nickvergessen nickvergessen added feature: frontend 🖌️ "Web UI" client feature: chat 💬 Chat and system messages labels Aug 17, 2022
@nickvergessen nickvergessen added this to the 💚 Next Beta (25) milestone Aug 17, 2022
@nickvergessen
Copy link
Member

this.currentFile?.permissions?.includes('W')

We currently only have the number permissions so I guess we need to translate them...

@nickvergessen
Copy link
Member

vue.runtime.esm.js:4560 [Vue warn]: Missing required prop: "etag"

I can also not reproduce this. Is it new from upcoming work?

Repository owner moved this from 🧭 Planning evaluation (don't pick) to ☑️ Done in 💬 Talk team Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants