From f482e60581b600c7f14488ef55c4431efe48f294 Mon Sep 17 00:00:00 2001 From: Rajat Talesra Date: Tue, 30 Aug 2022 16:48:48 +0530 Subject: [PATCH] Removed unused brand color field from Profile (#18370) * Minimal changes for removing brand-color-2 * Removed brand color 2 only for profile * Updated test --- app/views/users/_profile.html.erb | 20 +++---------------- config/locales/views/misc/en.yml | 4 ++++ config/locales/views/misc/fr.yml | 4 ++++ .../updateProfileSettings.spec.js | 14 +++---------- 4 files changed, 14 insertions(+), 28 deletions(-) diff --git a/app/views/users/_profile.html.erb b/app/views/users/_profile.html.erb index 62b66b78a..3fa282a17 100644 --- a/app/views/users/_profile.html.erb +++ b/app/views/users/_profile.html.erb @@ -160,32 +160,18 @@

<%= t("views.settings.group.Branding") %>

-

<%= t("views.logo.color_1.description") %>

+

<%= t("views.profile.color.description") %>

<%= f.public_send(:text_field, "users_setting[brand_color1]", value: users_setting.public_send(:brand_color1), placeholder: "#000000", class: "crayons-textfield", - data: { color_picker: "true", label_text: t("views.logo.color_1.label") }) %> + data: { color_picker: "true", label_text: t("views.profile.color.label") }) %>
- -
- -

<%= t("views.logo.color_2.description_html") %>

-
- <%= f.public_send(:text_field, "users_setting[brand_color2]", - value: users_setting.public_send(:brand_color2), - placeholder: "#000000", - class: "crayons-textfield", - data: { color_picker: "true", label_text: t("views.logo.color_2.label") }) %> -
-