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 issue ocis-1043 in settings service #1044

Merged
merged 3 commits into from
Dec 11, 2020
Merged

fix issue ocis-1043 in settings service #1044

merged 3 commits into from
Dec 11, 2020

Conversation

fschade
Copy link
Contributor

@fschade fschade commented Dec 9, 2020

partially fixes #1043

@update-docs
Copy link

update-docs bot commented Dec 9, 2020

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.

@@ -107,8 +108,8 @@ export default {
getExtensionName (extension) {
extension = extension || ''
switch (extension) {
case 'ocis-accounts': return this.$gettext('Account')
case 'ocis-hello': return this.$gettext('Hello')
case 'ocis-accounts': return 'Account'
Copy link
Contributor

Choose a reason for hiding this comment

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

The this.$gettext is needed. Otherwise the strings will not be extracted for translation (submission to transifex).

:key="'bundle-' + bundle.id"
:bundle="bundle"
class="oc-mt"
v-for="bundle in selectedBundles"
Copy link
Contributor

Choose a reason for hiding this comment

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

The indentation looks wrong here and in the next three lines 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

dang, my formatter haven't picked this up... done in new commit.

initialized () {
this.resetMenuItems()
this.resetSelectedExtension()
'$language.current': {
Copy link
Contributor

@kulmann kulmann Dec 11, 2020

Choose a reason for hiding this comment

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

I fear that this is needed for now. But it looks and feels wrong that extensions have to watch on the language themselves. Only oC web core should be responsible for triggering translation updates on language changes. 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yea, no separation of concerns. I pick thist up for our improvement paper

@fschade fschade requested a review from kulmann December 11, 2020 12:20
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Contributor

@kulmann kulmann left a comment

Choose a reason for hiding this comment

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

👍

@fschade fschade merged commit 3cf85fd into master Dec 11, 2020
@delete-merged-branch delete-merged-branch bot deleted the bugfix-1043 branch December 11, 2020 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Settings menu item in app switcher and user menu
2 participants