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

Convert buttons in files list to urls, align in context menu #11329

Merged
merged 15 commits into from
Aug 12, 2024

Conversation

AlexAndBear
Copy link
Contributor

@AlexAndBear AlexAndBear commented Aug 6, 2024

Description

image

Related Issue

Motivation and Context

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests
  • Documentation
  • Maintenance (e.g. dependency updates or tooling)

Open tasks:

  • ...

Copy link

update-docs bot commented Aug 6, 2024

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@AlexAndBear AlexAndBear force-pushed the open-in-new-tab branch 2 times, most recently from d1c74d3 to c8df178 Compare August 6, 2024 20:37
const openInNewTabHint = computed(() => {
return $gettext(
'Hold %{key} and click to open in new tab',
{ key: unref(isMacOs) ? '⌘' : 'ctrl' },
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How to localize the strg/Ctrl key

@AlexAndBear AlexAndBear mentioned this pull request Aug 7, 2024
8 tasks
@AlexAndBear AlexAndBear force-pushed the open-in-new-tab branch 2 times, most recently from bd23fc6 to fc88a61 Compare August 7, 2024 20:31
@AlexAndBear AlexAndBear changed the title Open in new tab Convert buttons in files list to urls, align in context menu Aug 7, 2024
@@ -139,6 +143,7 @@ export default defineComponent({
const { getFileContents, getFileInfo } = clientService.webdav
const previewService = usePreviewService()
const resourcesStore = useResourcesStore()
const { getDefaultAction } = useFileActions()
const { actions: editReadmeContentActions } = useSpaceActionsEditReadmeContent()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this can be removed then.

I'm wondering in general, now that this is an a element, wouldn't it make sense in the context menu as well? Or is there a reason it should differ?

Copy link
Contributor Author

@AlexAndBear AlexAndBear Aug 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would make sense, was there and encountered issues. In the context menu action, we care about creating the .space folder and the readme file if not exist beforehand.

As soon those files are protected from being deleted:
owncloud/ocis#8719

We might be able to convert the button in the context menu as well to an a tag

packages/web-pkg/src/components/FilesList/ResourceLink.vue Outdated Show resolved Hide resolved
Copy link
Collaborator

@JammingBen JammingBen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍 Needs a changelog item, otherwise LGTM

@AlexAndBear AlexAndBear enabled auto-merge (squash) August 12, 2024 10:42
Copy link

sonarcloud bot commented Aug 12, 2024

@AlexAndBear AlexAndBear merged commit 36cb1c8 into master Aug 12, 2024
3 checks passed
ownclouders pushed a commit that referenced this pull request Aug 12, 2024
@kulmann kulmann deleted the open-in-new-tab branch September 5, 2024 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make open file or folder in new tab a user choice
2 participants