mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-12 13:18:40 +01:00
Add Share to Context menus, also share artist
This commit is contained in:
parent
051e9c556d
commit
433da37982
5 changed files with 50 additions and 8 deletions
|
|
@ -12,7 +12,7 @@ import {
|
|||
useNotify,
|
||||
useTranslate,
|
||||
} from 'react-admin'
|
||||
import { useState } from 'react'
|
||||
import { useEffect, useState } from 'react'
|
||||
import { shareUrl } from '../utils'
|
||||
import { useTranscodingOptions } from './useTranscodingOptions'
|
||||
import { useDispatch, useSelector } from 'react-redux'
|
||||
|
|
@ -26,6 +26,9 @@ export const ShareDialog = () => {
|
|||
const notify = useNotify()
|
||||
const translate = useTranslate()
|
||||
const [description, setDescription] = useState('')
|
||||
useEffect(() => {
|
||||
setDescription('')
|
||||
}, [ids])
|
||||
const { TranscodingOptionsInput, format, maxBitRate, originalFormat } =
|
||||
useTranscodingOptions()
|
||||
const [createShare] = useCreate(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue