- pdf implementation

- file preview refactoring
This commit is contained in:
Peter Papp
2021-04-16 10:27:09 +02:00
parent 9105ce8bb1
commit b105c9fc8f
15 changed files with 2339 additions and 1514 deletions

View File

@@ -213,20 +213,14 @@ export default {
events.$emit('popup:open', { name: 'move', item: this.fileInfoDetail })
},
shareItem() {
if (this.fileInfoDetail[0]) {
//ADD BY M
if (this.fileInfoDetail[0].shared) {
events.$emit('popup:open', {
name: 'share-edit',
item: this.fileInfoDetail[0]
})
} else {
events.$emit('popup:open', {
name: 'share-create',
item: this.fileInfoDetail[0]
})
}
}
let event = this.fileInfoDetail[0].shared
? 'share-edit'
: 'share-create'
events.$emit('popup:open', {
name: event,
item: this.fileInfoDetail[0]
})
}
},
mounted() {