Skip to content

Commit

Permalink
Fix-8008: Don't open sharing sidebar after creating/copying quicklink
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalwengerter committed Nov 28, 2022
1 parent 48d150f commit 433207e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Enhancement: Don't open sidebar when copying quicklink

Following user feedback, we don't open the sharing sidebar anymore after copying/creating a quicklink.

https://github.com/owncloud/web/issues/8008
https://github.com/owncloud/web/pull/8036
4 changes: 0 additions & 4 deletions packages/web-app-files/src/mixins/actions/createQuicklink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { createQuicklink } from '../../helpers/share'
import { ShareStatus } from 'web-client/src/helpers/share'

import { isLocationSharesActive } from '../../router'
import { eventBus } from 'web-pkg/src/services/eventBus'
import { SideBarEventTopics } from '../../composables/sideBar'

export default {
computed: {
Expand Down Expand Up @@ -43,8 +41,6 @@ export default {
store,
$gettext: this.$gettext
})

eventBus.publish(SideBarEventTopics.openWithPanel, 'sharing-item#linkShares')
}
}
}
2 changes: 0 additions & 2 deletions packages/web-app-files/src/quickActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,10 @@ export default {
if (passwordEnforced) {
return showQuickLinkPasswordModal(ctx, async (password) => {
await createQuicklink({ ...ctx, resource: ctx.item, password })
eventBus.publish(SideBarEventTopics.openWithPanel, 'sharing-item#linkShares')
})
}

await createQuicklink({ ...ctx, resource: ctx.item })
eventBus.publish(SideBarEventTopics.openWithPanel, 'sharing-item#linkShares')
},
displayed: canShare
}
Expand Down

0 comments on commit 433207e

Please sign in to comment.