Make the UI use the new ShareURL option

This commit is contained in:
Caio Cotts
2024-09-15 14:45:00 -04:00
parent f0240280eb
commit 8ac133027d
7 changed files with 25 additions and 12 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ import {
useTranslate,
} from 'react-admin'
import { useEffect, useState } from 'react'
import { shareUrl } from '../utils'
import { sharePlayerUrl } from '../utils'
import { useTranscodingOptions } from './useTranscodingOptions'
import { useDispatch, useSelector } from 'react-redux'
import { closeShareMenu } from '../actions'
@@ -52,7 +52,7 @@ export const ShareDialog = () => {
},
{
onSuccess: (res) => {
const url = shareUrl(res?.data?.id)
const url = sharePlayerUrl(res?.data?.id)
if (navigator.clipboard && window.isSecureContext) {
navigator.clipboard
.writeText(url)