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

[next] refactor: Use boolean props with default value false #6509

Merged
merged 2 commits into from
Feb 16, 2025

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Feb 12, 2025

Backport of #6452

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot backportbot bot requested review from Antreesy, GretaD and susnux February 12, 2025 15:38
@backportbot backportbot bot added 3. to review Waiting for reviews refactor ♻️ Pull request that is neither a fix nor a feature labels Feb 12, 2025
Provide `disableSwipe` instead of `allowSwipeNavigation`
(`NcAppContent`) and `enableSwipe` (`NcModal`).

Boolean prop should always - when possible - have a default value of
`false` to allow shorthand prop assignment in the template.
Similar to native HTML boolean attributes:

```vue
<!-- native HTML -->
<button disabled>
<!-- boolean Vue prop with default false -->
<NcModal disable-swipe>
```

Signed-off-by: Ferdinand Thiessen <[email protected]>
@Antreesy Antreesy marked this pull request as ready for review February 13, 2025 12:35
Copy link
Contributor

@susnux susnux left a comment

Choose a reason for hiding this comment

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

@Antreesy thank you for the ncdialog fix :)

Signed-off-by: Ferdinand Thiessen <[email protected]>
@susnux susnux force-pushed the backport/6452/next branch from a795598 to efd2517 Compare February 16, 2025 16:53
@susnux susnux merged commit 9346506 into next Feb 16, 2025
24 checks passed
@susnux susnux deleted the backport/6452/next branch February 16, 2025 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews refactor ♻️ Pull request that is neither a fix nor a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants