mirror of
https://github.com/penpot/penpot.git
synced 2025-03-16 01:31:22 -05:00
🐛 Fix default project name in dashboard Move to option
This commit is contained in:
parent
533cac7881
commit
7bbf98dfb1
2 changed files with 8 additions and 1 deletions
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
### :bug: Bugs fixed
|
### :bug: Bugs fixed
|
||||||
|
|
||||||
|
- Fix default project name in all languages [Taiga #2280](https://tree.taiga.io/project/penpot/issue/2280)
|
||||||
- Fix line-height and letter-spacing inputs to allow negative values [Taiga #2381](https://tree.taiga.io/project/penpot/issue/2381)
|
- Fix line-height and letter-spacing inputs to allow negative values [Taiga #2381](https://tree.taiga.io/project/penpot/issue/2381)
|
||||||
- Fix typo in Handoff tooltip [Taiga #2428](https://tree.taiga.io/project/penpot/issue/2428).
|
- Fix typo in Handoff tooltip [Taiga #2428](https://tree.taiga.io/project/penpot/issue/2428).
|
||||||
- Fix crash when pressing Shift+1 on empty file [#1435](https://github.com/penpot/penpot/issues/1435).
|
- Fix crash when pressing Shift+1 on empty file [#1435](https://github.com/penpot/penpot/issues/1435).
|
||||||
|
|
|
@ -6,9 +6,11 @@
|
||||||
|
|
||||||
(ns app.main.ui.components.context-menu
|
(ns app.main.ui.components.context-menu
|
||||||
(:require
|
(:require
|
||||||
|
[app.main.refs :as refs]
|
||||||
[app.main.ui.components.dropdown :refer [dropdown']]
|
[app.main.ui.components.dropdown :refer [dropdown']]
|
||||||
[app.main.ui.icons :as i]
|
[app.main.ui.icons :as i]
|
||||||
[app.util.dom :as dom]
|
[app.util.dom :as dom]
|
||||||
|
[app.util.i18n :as i18n :refer [tr]]
|
||||||
[app.util.object :as obj]
|
[app.util.object :as obj]
|
||||||
[goog.object :as gobj]
|
[goog.object :as gobj]
|
||||||
[rumext.alpha :as mf]))
|
[rumext.alpha :as mf]))
|
||||||
|
@ -29,6 +31,8 @@
|
||||||
left (gobj/get props "left" 0)
|
left (gobj/get props "left" 0)
|
||||||
fixed? (gobj/get props "fixed?" false)
|
fixed? (gobj/get props "fixed?" false)
|
||||||
min-width? (gobj/get props "min-width?" false)
|
min-width? (gobj/get props "min-width?" false)
|
||||||
|
route (mf/deref refs/route)
|
||||||
|
in-dashboard? (= :dashboard-projects (:name (:data route)))
|
||||||
|
|
||||||
local (mf/use-state {:offset 0
|
local (mf/use-state {:offset 0
|
||||||
:levels nil})
|
:levels nil})
|
||||||
|
@ -107,7 +111,9 @@
|
||||||
[:a.context-menu-action {:on-click #(do (dom/stop-propagation %)
|
[:a.context-menu-action {:on-click #(do (dom/stop-propagation %)
|
||||||
(on-close)
|
(on-close)
|
||||||
(option-handler %))}
|
(option-handler %))}
|
||||||
option-name]
|
(if (and in-dashboard? (= option-name "Default"))
|
||||||
|
(tr "dashboard.default-team-name")
|
||||||
|
option-name)]
|
||||||
[:a.context-menu-action.submenu
|
[:a.context-menu-action.submenu
|
||||||
{:data-no-close true
|
{:data-no-close true
|
||||||
:on-click (enter-submenu option-name sub-options)}
|
:on-click (enter-submenu option-name sub-options)}
|
||||||
|
|
Loading…
Add table
Reference in a new issue