Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

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

Merged
AlexAndBear merged 15 commits into
masterfrom
open-in-new-tab
Aug 12, 2024
Merged

AlexAndBear merged 15 commits into
masterfrom
open-in-new-tab

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented Aug 6, 2024 •

Copy link
Copy Markdown
Contributor

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:

  • ...

@update-docs

update-docs Bot commented Aug 6, 2024

Copy link
Copy Markdown

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
Copy Markdown
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
@AlexAndBear
AlexAndBear requested a review from JammingBen August 7, 2024 23:06
const previewService = usePreviewService()
const resourcesStore = useResourcesStore()
const { getDefaultAction } = useFileActions()
const { actions: editReadmeContentActions } = useSpaceActionsEditReadmeContent()

Copy link
Copy Markdown
Contributor

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?

@AlexAndBear AlexAndBear Aug 12, 2024 •

Copy link
Copy Markdown
Contributor Author

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

@AlexAndBear
AlexAndBear requested a review from JammingBen August 12, 2024 07:51

@JammingBen JammingBen left a comment

Copy link
Copy Markdown
Contributor

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
@sonarqubecloud

Copy link
Copy Markdown

@AlexAndBear
AlexAndBear merged commit 36cb1c8 into master Aug 12, 2024
ownclouders pushed a commit that referenced this pull request Aug 12, 2024
@v-scharf v-scharf mentioned this pull request Aug 20, 2024
20 of 21 tasks
@kulmann
kulmann deleted the open-in-new-tab branch September 5, 2024 19:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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