diff --git a/frontend/resources/images/icons/logo-files.svg b/frontend/resources/images/icons/logo-files.svg new file mode 100644 index 0000000000..55b707b557 --- /dev/null +++ b/frontend/resources/images/icons/logo-files.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/src/app/main/ui/dashboard/sidebar.cljs b/frontend/src/app/main/ui/dashboard/sidebar.cljs index 9ba8dfd53b..9f81b51a19 100644 --- a/frontend/src/app/main/ui/dashboard/sidebar.cljs +++ b/frontend/src/app/main/ui/dashboard/sidebar.cljs @@ -407,9 +407,9 @@ [:> dropdown-menu-item* {:on-click on-team-click :data-value default-team-id :class (stl/css :team-dropdown-item)} - [:span {:class (stl/css :penpot-icon)} deprecated-icon/logo-icon] + [:span {:class (stl/css :penpot-icon)} (if (contains? cf/flags :nitrate) deprecated-icon/logo-files deprecated-icon/logo-icon)] - [:span {:class (stl/css :team-text)} (tr "dashboard.your-penpot")] + [:span {:class (stl/css :team-text)} (if (contains? cf/flags :nitrate) (tr "dashboard.my-files") (tr "dashboard.your-penpot"))] (when (= default-team-id (:id team)) tick-icon)] @@ -901,8 +901,8 @@ (cond is-default? [:div {:class (stl/css :team-name)} - [:span {:class (stl/css :penpot-icon)} deprecated-icon/logo-icon] - [:span {:class (stl/css :team-text)} (tr "dashboard.default-team-name")]] + [:span {:class (stl/css :penpot-icon)} (if nitrate? deprecated-icon/logo-files deprecated-icon/logo-icon)] + [:span {:class (stl/css :team-text)} (if nitrate? (tr "dashboard.my-files") (tr "dashboard.default-team-name"))]] (and (contains? cf/flags :subscriptions) (not is-default?) diff --git a/frontend/src/app/main/ui/icons.cljs b/frontend/src/app/main/ui/icons.cljs index 6c5404393b..1ef023a079 100644 --- a/frontend/src/app/main/ui/icons.cljs +++ b/frontend/src/app/main/ui/icons.cljs @@ -17,6 +17,7 @@ (def ^:icon logo (icon-xref :penpot-logo)) (def ^:icon logo-icon (icon-xref :penpot-logo-icon)) (def ^:icon logo-error-screen (icon-xref :logo-error-screen)) +(def ^:icon logo-files (icon-xref :logo-files)) (def ^:icon logo-subscription (icon-xref :logo-subscription)) (def ^:icon logo-subscription-light (icon-xref :logo-subscription-light)) (def ^:icon nitrate-welcome (icon-xref :nitrate-welcome)) diff --git a/frontend/translations/en.po b/frontend/translations/en.po index e5ea13f565..e05426f58e 100644 --- a/frontend/translations/en.po +++ b/frontend/translations/en.po @@ -1422,6 +1422,9 @@ msgstr "Your name" msgid "dashboard.your-penpot" msgstr "Your Penpot" +msgid "dashboard.my-files" +msgstr "My Files" + #: src/app/main/ui/alert.cljs:36 msgid "ds.alert-ok" msgstr "Ok" diff --git a/frontend/translations/es.po b/frontend/translations/es.po index 4f7f44f4fa..cceda3bf52 100644 --- a/frontend/translations/es.po +++ b/frontend/translations/es.po @@ -1433,6 +1433,9 @@ msgstr "Tu nombre" msgid "dashboard.your-penpot" msgstr "Tu Penpot" +msgid "dashboard.my-files" +msgstr "Mis Archivos" + #: src/app/main/ui/alert.cljs:36 msgid "ds.alert-ok" msgstr "Ok"