-
Notifications
You must be signed in to change notification settings - Fork 105
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
chore(colors): remove duplicate colors #7161
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.
I noticed this problem while converting the E2E tests. Thanks for working on it!
The changes mostly look good.
I tested it using the bhima_test DB. I noticed that the colors that are from i18n COLORS.* are capitalized. Could you please modify the .json file and uncapitalize them. Also I think GRAY is a duplicate that could be deleted.
Thanks!
@@ -6,17 +6,6 @@ ColorService.$inject = [ | |||
function ColorService($translate) { | |||
const service = this; | |||
service.list = [ | |||
{ name : $translate.instant('COLORS.AQUA'), value : '#00ffff' }, |
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.
Thank you!
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.
Thanks for the changes. I hate to be picky, but could I ask you to delete the duplicate 'gray' color and sort the list of colors alphabetically. And why do we have translations for some colors and not others (legacy?).
This commit removes duplicate colors from the ColorService. Closes Third-Culture-Software#7018 chore(colors): adjust casing of colors Removes the capitalization of letters in the color service.
This commit removes duplicates in the color list, ensures it is sorted, and adds the full additional colors to the color service.
dce9b7b
to
85cb675
Compare
@jmcameron this is ready to go 👍 |
bors r+ |
Build failed: |
Looks like MySQL failed to initialize - I'll restart it. bors r+ |
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
This commit removes duplicate colors from the ColorService.
Closes #7018