Skip to content

Commit

Permalink
Fix ODS not updated, fix row click bug undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
lookacat committed Jun 27, 2022
1 parent 534ee40 commit 38c586c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -678,13 +678,15 @@ export default defineComponent({
* Triggered when the file row is clicked
* @property {object} resource The resource for which the event is triggered
*/
if (data[1].metaKey) {
bus.publish('app.files.list.clicked.meta', data[0])
} else if (data[1].shiftKey) {
bus.publish('app.files.list.clicked.shift', data[0])
} else {
this.emitSelect([data[0]])
const resource = data[0]
const eventData = data[1]
if (eventData && eventData.metaKey) {
return bus.publish('app.files.list.clicked.meta', resource)
}
if (eventData && eventData.shiftKey) {
return bus.publish('app.files.list.clicked.shift', resource)
}
return this.emitSelect([resource])
},
formatDate(date) {
return DateTime.fromJSDate(new Date(date))
Expand Down
2 changes: 1 addition & 1 deletion packages/web-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"luxon": "^2.4.0",
"marked": "^4.0.12",
"oidc-client": "1.11.5",
"owncloud-design-system": "^14.0.0-alpha.3",
"owncloud-design-system": "14.0.0-alpha.4",
"owncloud-sdk": "~3.0.0-alpha.14",
"p-queue": "^6.6.2",
"popper-max-size-modifier": "^0.2.0",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9707,9 +9707,9 @@ __metadata:
languageName: node
linkType: hard

"owncloud-design-system@npm:^14.0.0-alpha.3":
version: 14.0.0
resolution: "owncloud-design-system@npm:14.0.0"
"owncloud-design-system@npm:14.0.0-alpha.4":
version: 14.0.0-alpha.4
resolution: "owncloud-design-system@npm:14.0.0-alpha.4"
peerDependencies:
"@popperjs/core": ^2.4.0
"@vue/composition-api": ^1.4.3
Expand All @@ -9726,7 +9726,7 @@ __metadata:
vue-inline-svg: ^2.0.0
vue-select: ^3.12.0
webfontloader: ^1.6.28
checksum: 1b3b43770d9d5e0fe7bb52b997b2a165f5f8dfdc9765b5f95cc30c050be9f8b4b7af5b2438006f701fd0c48a8c62d6fd005c969e4aa6e9f804324b88a157214b
checksum: b45901f01adcf50de706d89f66387a524c18d241b0123e745a6e4c167d1350f68f3ca3ebe636857fea12e58b6b6534c49bff9c2f82757548ed3d61b9774e78dc
languageName: node
linkType: hard

Expand Down Expand Up @@ -13781,7 +13781,7 @@ __metadata:
luxon: ^2.4.0
marked: ^4.0.12
oidc-client: 1.11.5
owncloud-design-system: ^14.0.0-alpha.3
owncloud-design-system: 14.0.0-alpha.4
owncloud-sdk: ~3.0.0-alpha.14
p-queue: ^6.6.2
popper-max-size-modifier: ^0.2.0
Expand Down

0 comments on commit 38c586c

Please sign in to comment.