Browse Source

Rename 'Remove from current' to 'Remove selected'

master
jeffvli 3 years ago
committed by Jeff
parent
commit
1a58812da4
  1. 2
      src/components/library/AlbumList.tsx
  2. 2
      src/components/library/AlbumView.tsx
  3. 2
      src/components/library/ArtistList.tsx
  4. 2
      src/components/library/ArtistView.tsx
  5. 2
      src/components/library/FolderList.tsx
  6. 2
      src/components/library/GenreList.tsx
  7. 2
      src/components/playlist/PlaylistList.tsx
  8. 8
      src/components/shared/ContextMenu.tsx
  9. 6
      src/components/starred/StarredView.tsx
  10. 2
      src/redux/miscSlice.ts

2
src/components/library/AlbumList.tsx

@ -204,7 +204,7 @@ const AlbumList = () => {
virtualized
disabledContextMenuOptions={[
'moveSelectedTo',
'removeFromCurrent',
'removeSelected',
'deletePlaylist',
'viewInFolder',
]}

2
src/components/library/AlbumView.tsx

@ -271,7 +271,7 @@ const AlbumView = ({ ...rest }: any) => {
listType="music"
isModal={rest.isModal}
disabledContextMenuOptions={[
'removeFromCurrent',
'removeSelected',
'moveSelectedTo',
'deletePlaylist',
'viewInModal',

2
src/components/library/ArtistList.tsx

@ -142,7 +142,7 @@ const ArtistList = () => {
virtualized
disabledContextMenuOptions={[
'moveSelectedTo',
'removeFromCurrent',
'removeSelected',
'deletePlaylist',
'viewInFolder',
]}

2
src/components/library/ArtistView.tsx

@ -284,7 +284,7 @@ const ArtistView = ({ ...rest }: any) => {
listType="album"
isModal={rest.isModal}
disabledContextMenuOptions={[
'removeFromCurrent',
'removeSelected',
'moveSelectedTo',
'deletePlaylist',
'viewInFolder',

2
src/components/library/FolderList.tsx

@ -227,7 +227,7 @@ const FolderList = () => {
'removeFromFavorites',
'viewInModal',
'moveSelectedTo',
'removeFromCurrent',
'removeSelected',
'deletePlaylist',
'viewInFolder',
]}

2
src/components/library/GenreList.tsx

@ -81,7 +81,7 @@ const GenreList = () => {
'addToQueueNext',
'addToQueueLast',
'moveSelectedTo',
'removeFromCurrent',
'removeSelected',
'addToPlaylist',
'deletePlaylist',
'addToFavorites',

2
src/components/playlist/PlaylistList.tsx

@ -178,7 +178,7 @@ const PlaylistList = () => {
'moveSelectedTo',
'addToFavorites',
'removeFromFavorites',
'removeFromCurrent',
'removeSelected',
'viewInFolder',
]}
/>

8
src/components/shared/ContextMenu.tsx

@ -227,7 +227,7 @@ export const GlobalContextMenu = () => {
}
};
const handleRemoveFromCurrent = async () => {
const handleRemoveSelected = async () => {
if (misc.contextMenu.type === 'nowPlaying') {
dispatch(removeFromPlayQueue({ entries: multiSelect.selected }));
if (playQueue.currentPlayer === 1) {
@ -549,9 +549,9 @@ export const GlobalContextMenu = () => {
disabled={misc.contextMenu.disabledOptions.includes('addToQueueLast')}
/>
<ContextMenuButton
text="Remove from current"
onClick={handleRemoveFromCurrent}
disabled={misc.contextMenu.disabledOptions.includes('removeFromCurrent')}
text="Remove selected"
onClick={handleRemoveSelected}
disabled={misc.contextMenu.disabledOptions.includes('removeSelected')}
/>
<Whisper
enterable

6
src/components/starred/StarredView.tsx

@ -175,7 +175,7 @@ const StarredView = () => {
listType="music"
virtualized
disabledContextMenuOptions={[
'removeFromCurrent',
'removeSelected',
'moveSelectedTo',
'deletePlaylist',
'viewInModal',
@ -201,7 +201,7 @@ const StarredView = () => {
listType="album"
virtualized
disabledContextMenuOptions={[
'removeFromCurrent',
'removeSelected',
'moveSelectedTo',
'deletePlaylist',
]}
@ -248,7 +248,7 @@ const StarredView = () => {
listType="artist"
virtualized
disabledContextMenuOptions={[
'removeFromCurrent',
'removeSelected',
'moveSelectedTo',
'addToPlaylist',
'deletePlaylist',

2
src/redux/miscSlice.ts

@ -20,7 +20,7 @@ type ContextMenuOptions =
| 'play'
| 'addToQueueNext'
| 'addToQueueLast'
| 'removeFromCurrent'
| 'removeSelected'
| 'addToPlaylist'
| 'deletePlaylist'
| 'addToFavorites'

Loading…
Cancel
Save