fix: pin note singular when only one note is selected
This commit is contained in:
@@ -112,7 +112,7 @@ export const NotesOptions = observer(
|
|||||||
style={{
|
style={{
|
||||||
...tagsMenuPosition,
|
...tagsMenuPosition,
|
||||||
}}
|
}}
|
||||||
className="sn-dropdown sn-dropdown-anchor-right flex flex-col py-2 max-w-265"
|
className="sn-dropdown sn-dropdown-anchor-right flex flex-col py-2 max-w-265px"
|
||||||
>
|
>
|
||||||
{appState.tags.tags.map((tag) => (
|
{appState.tags.tags.map((tag) => (
|
||||||
<button
|
<button
|
||||||
@@ -139,7 +139,13 @@ export const NotesOptions = observer(
|
|||||||
type={pinned ? IconType.Unpin : IconType.Pin}
|
type={pinned ? IconType.Unpin : IconType.Pin}
|
||||||
className={iconClass}
|
className={iconClass}
|
||||||
/>
|
/>
|
||||||
{pinned ? 'Unpin notes' : 'Pin notes'}
|
{appState.notes.selectedNotesCount > 1
|
||||||
|
? pinned
|
||||||
|
? 'Unpin notes'
|
||||||
|
: 'Pin notes'
|
||||||
|
: pinned
|
||||||
|
? 'Unpin note'
|
||||||
|
: 'Pin note'}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
onBlur={closeOnBlur}
|
onBlur={closeOnBlur}
|
||||||
|
|||||||
Reference in New Issue
Block a user