mirror of
https://github.com/navidrome/navidrome.git
synced 2026-02-09 06:21:06 -05:00
* Add toggleColumns - Add logic for toggling columns - Add MenuComponent + useSelectedFields hook * Refactoring * eslint-fixes * Typo * skip menu in albumGridView * add omittedFields * Add toggling for playlists and albumSong * Refactoring * defaultProps - fix * Add toggling for PlaylistSongs * remove accidental console log * Refactoring for future compatibility * Hide ToggleMenu in albumGridView * Add TopBarComponent in ToggleFieldsMenu * Add defaultOff for useSelectedFields * Fix edge case * eslint fix * Refactoring * Add propType for forwardRef * Fix issues * add translation for grid and table * add translation for grid and table * Ignore menuBtn for spotify-ish and Ligera themes * hide bpm by default in playlistSongs * Add memoization * Default album view must be Grid Co-authored-by: Deluan <deluan@navidrome.org>
19 lines
472 B
JavaScript
19 lines
472 B
JavaScript
export const SET_NOTIFICATIONS_STATE = 'SET_NOTIFICATIONS_STATE'
|
|
export const SET_TOGGLEABLE_FIELDS = 'SET_TOGGLEABLE_FIELDS'
|
|
export const SET_OMITTED_FIELDS = 'SET_OMITTED_FIELDS'
|
|
|
|
export const setNotificationsState = (enabled) => ({
|
|
type: SET_NOTIFICATIONS_STATE,
|
|
data: enabled,
|
|
})
|
|
|
|
export const setToggleableFields = (obj) => ({
|
|
type: SET_TOGGLEABLE_FIELDS,
|
|
data: obj,
|
|
})
|
|
|
|
export const setOmittedFields = (obj) => ({
|
|
type: SET_OMITTED_FIELDS,
|
|
data: obj,
|
|
})
|