Skip to content

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

Merged
ShGKme merged 2 commits into
masterfrom
fix/settings--disable-discover-when-app-store-is-disabled
Sep 17, 2024
Merged

fix(settings): disable Discover when appstore is disabled#48090
ShGKme merged 2 commits into
masterfrom
fix/settings--disable-discover-when-app-store-is-disabled

Conversation

@ShGKme

Copy link
Copy Markdown
Contributor

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
imageimage

Checklist

@ShGKmeShGKme added this to the Nextcloud 31 milestone Sep 16, 2024
@ShGKme
ShGKme requested review from a team and susnuxSeptember 16, 2024 13:55
@ShGKmeShGKme self-assigned this Sep 16, 2024
@ShGKme
ShGKme requested review from artonge and skjnldsv and removed request for a teamSeptember 16, 2024 13:55
@ShGKme

Copy link
Copy Markdown
ContributorAuthor

/backport to stable30

@ShGKme

Copy link
Copy Markdown
ContributorAuthor

/backport to stable30

@ShGKme

Copy link
Copy Markdown
ContributorAuthor

/backport to stable29

Comment threadapps/settings/src/router/routes.ts Outdated
import { loadState } from '@nextcloud/initial-state'
import type { RouteConfig } from 'vue-router'

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.

Types 🆙

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

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown
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
ShGKmeforce-pushed the fix/settings--disable-discover-when-app-store-is-disabled branch from 2465ed0 to 5ac467bCompareSeptember 16, 2024 14:30
@ShGKme
ShGKme enabled auto-merge September 16, 2024 15:47
@ShGKme
ShGKme merged commit f0bf799 into masterSep 17, 2024
@ShGKme
ShGKme deleted the fix/settings--disable-discover-when-app-store-is-disabled branch September 17, 2024 08:31
@skjnldsvskjnldsv mentioned this pull request Jan 7, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@ShGKme@nickvergessen@susnux@skjnldsv