Skip to content

Commit

Permalink
enable copy/paste/move for shares
Browse files Browse the repository at this point in the history
  • Loading branch information
lookacat committed Jul 28, 2022
1 parent eec1627 commit c0d9edc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/web-app-files/src/mixins/actions/copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default {
if (
!isLocationSpacesActive(this.$router, 'files-spaces-personal') &&
!isLocationSpacesActive(this.$router, 'files-spaces-project') &&
!isLocationSpacesActive(this.$router, 'files-spaces-share') &&
!isLocationPublicActive(this.$router, 'files-public-files') &&
!isLocationCommonActive(this.$router, 'files-common-favorites')
) {
Expand Down
1 change: 1 addition & 0 deletions packages/web-app-files/src/mixins/actions/move.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default {
if (
!isLocationSpacesActive(this.$router, 'files-spaces-personal') &&
!isLocationSpacesActive(this.$router, 'files-spaces-project') &&
!isLocationSpacesActive(this.$router, 'files-spaces-share') &&
!isLocationPublicActive(this.$router, 'files-public-files') &&
!isLocationCommonActive(this.$router, 'files-common-favorites')
) {
Expand Down
2 changes: 1 addition & 1 deletion packages/web-app-files/src/mixins/actions/paste.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default {
...mapGetters('Files', ['clipboardResources']),
isMacOs() {
return window.navigator.platform.match('Mac')

},
getPasteShortcutString() {
if (this.isMacOs) {
Expand All @@ -32,6 +31,7 @@ export default {
if (
!isLocationSpacesActive(this.$router, 'files-spaces-personal') &&
!isLocationSpacesActive(this.$router, 'files-spaces-project') &&
!isLocationSpacesActive(this.$router, 'files-spaces-share') &&
!isLocationPublicActive(this.$router, 'files-public-files') &&
!isLocationCommonActive(this.$router, 'files-common-favorites')
) {
Expand Down

0 comments on commit c0d9edc

Please sign in to comment.