-
Notifications
You must be signed in to change notification settings - Fork 156
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
[full-ci] Move language selection to the account page and kill settings app #8294
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found two issues:
- the
Edit
button in the top right of the account page can be removed for ocis... there is no external editing anymore now with this PR listValues
returnsnull
if no language has been set before. Your implementation doesn't handle that, I don't see a rendered dropdown and a console error instead.
Results for acceptance oCIS https://drone.owncloud.com/owncloud/web/31978/53/1 💥 The oCISBasic tests pipeline failed. The build has been cancelled. |
Results for acceptance oC10 https://drone.owncloud.com/owncloud/web/31981/13/1 💥 The oC10Basic tests pipeline failed. The build has been cancelled. |
private function addAccountEditLinkToConfig(array $config): array { | ||
$options = $config['options'] ?? []; | ||
$serverUrl = $this->request->getServerProtocol() . '://' . $this->request->getServerHost(); | ||
$options['accountEditLink'] = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should only be done if the config.json
loaded from disk didn't specify it on its own. I.e. if acountEditLink
already exists you can return early.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see 36cc027
96363f6
to
36cc027
Compare
Kudos, SonarCloud Quality Gate passed! |
Author: Jannik Stehle <50302941+JammingBen@users.noreply.github.com> Date: Tue Jan 24 01:26:08 2023 +0100 [full-ci] Move language selection to the account page and kill settings app (#8294) * Move language selection to the account page and kill settings app Co-authored-by: Dominik Schmidt <dev@dominik-schmidt.de> Co-authored-by: Benedikt Kulmann <benedikt@kulmann.biz>
Description
The language selection has been moved from the settings app to the personal account page. The settings app has been removed from the default configs because we don't need it currently.
Fixes #8290
Needs a follow-up PR in oCIS to adjust the configs there.
Screenshots (if appropriate):
Types of changes