-
Notifications
You must be signed in to change notification settings - Fork 1
fix 171 Wrong tooltip for toggle settings #178
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
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -3,6 +3,9 @@ | |||||||
| * | ||||||||
| * @author Nils Dycke | ||||||||
| */ | ||||||||
| const path = require("path"); | ||||||||
| require("dotenv").config({path: path.resolve(__dirname, "../../../.env")}); | ||||||||
|
||||||||
| require("dotenv").config({path: path.resolve(__dirname, "../../../.env")}); | |
| const envFileName = process.env.ENV ? `.env.${process.env.ENV}` : ".env"; | |
| require("dotenv").config({path: path.resolve(__dirname, "../../../", envFileName)}); |
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.
Not sure why you do that here, is it needed?
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -33,7 +33,7 @@ | |||||||||||||
| :checked="setting.value" | ||||||||||||||
|
||||||||||||||
| :checked="setting.value" |
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.
the name of the function seems misleading
Copilot
AI
Apr 22, 2026
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.
getBooleanToggleTooltip currently just returns the computed label via a template literal. Consider returning label directly (no interpolation needed) and matching the spacing/style used by the other methods (space before {) to keep formatting consistent in this file.
| getBooleanToggleTooltip(setting){ | |
| const label = (setting.description && setting.description.trim()) || setting.key; | |
| return `${label}`; | |
| getBooleanToggleTooltip(setting) { | |
| const label = (setting.description && setting.description.trim()) || setting.key; | |
| return label; |
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.
spelling mistake