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

fix(settings): disable Discover when appstore is disabled #48090

Merged

Conversation

ShGKme
Copy link
Contributor

@ShGKme ShGKme commented Sep 16, 2024

Summary

Even when the App Store is disabled, the default page (also listed in the navigation) is Discovery, which doesn't work. And when there is no internet, it results in error: "Avertissement appstoreFetcher Could not get apps from the appstore".

Solution — if the app store is disabled:

  • Remove "Discovery" from the navigation
  • Use the old "Your apps" page as the default

P.S. It is still possible to open any category, including supported or non-existed by direct link and see an error. Might make sense to explicitly define the list of available categories and check before route enter/update.

🏚️ Before 🏡 After
image image

Checklist

@ShGKme ShGKme added this to the Nextcloud 31 milestone Sep 16, 2024
@ShGKme ShGKme requested review from susnux and a team September 16, 2024 13:55
@ShGKme ShGKme self-assigned this Sep 16, 2024
@ShGKme ShGKme requested review from artonge and skjnldsv and removed request for a team September 16, 2024 13:55
@ShGKme
Copy link
Contributor Author

ShGKme commented Sep 16, 2024

/backport to stable30

@ShGKme
Copy link
Contributor Author

ShGKme commented Sep 16, 2024

/backport to stable30

@ShGKme
Copy link
Contributor Author

ShGKme commented Sep 16, 2024

/backport to stable29

import { loadState } from '@nextcloud/initial-state'
import type { RouteConfig } from 'vue-router'
Copy link
Contributor

Choose a reason for hiding this comment

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

Types 🆙

Suggested change
import { loadState } from '@nextcloud/initial-state'
import type { RouteConfig } from 'vue-router'
import type { RouteConfig } from 'vue-router'
import { loadState } from '@nextcloud/initial-state'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ESLint does not complain ._.

Copy link
Member

Choose a reason for hiding this comment

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

We're the eslint

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
@ShGKme ShGKme force-pushed the fix/settings--disable-discover-when-app-store-is-disabled branch from 2465ed0 to 5ac467b Compare September 16, 2024 14:30
@ShGKme ShGKme merged commit f0bf799 into master Sep 17, 2024
116 checks passed
@ShGKme ShGKme deleted the fix/settings--disable-discover-when-app-store-is-disabled branch September 17, 2024 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants