mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-19 14:14:17 +00:00
feat: share link from cuesheet
This commit is contained in:
committed by
Carlos Valente
parent
84b73fc02a
commit
c6c1e4a5d7
@@ -13,7 +13,7 @@
|
||||
color: $ui-white;
|
||||
border-radius: 3px;
|
||||
box-shadow: $box-shadow-l1;
|
||||
border: 1px solid $gray-1200;
|
||||
border: 1px solid $gray-1100;
|
||||
}
|
||||
|
||||
.backdrop {
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
|
||||
z-index: $zindex-dialog;
|
||||
transform: translate(-50%, -50%);
|
||||
|
||||
padding-inline: 1rem;
|
||||
@@ -14,7 +13,7 @@
|
||||
color: $ui-white;
|
||||
border-radius: 3px;
|
||||
box-shadow: $box-shadow-l1;
|
||||
border: 1px solid $gray-1200;
|
||||
border: 1px solid $gray-1100;
|
||||
}
|
||||
|
||||
.backdrop {
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
background-color: $gray-1250;
|
||||
color: $ui-white;
|
||||
border-right: 1px solid $gray-1200;
|
||||
border-right: 1px solid $gray-1100;
|
||||
|
||||
&[data-open] {
|
||||
transform: translateX(0%);
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
background-color: $gray-1250;
|
||||
color: $ui-white;
|
||||
border-left: 1px solid $gray-1200;
|
||||
border-left: 1px solid $gray-1100;
|
||||
|
||||
&[data-open] {
|
||||
transform: translateX(0%);
|
||||
|
||||
@@ -4,7 +4,11 @@ import { queryRefetchIntervalSlow } from '../../ontimeConfig';
|
||||
import { URL_PRESETS } from '../api/constants';
|
||||
import { getUrlPresets } from '../api/urlPresets';
|
||||
|
||||
export default function useUrlPresets() {
|
||||
interface FetchProps {
|
||||
skip?: boolean;
|
||||
}
|
||||
|
||||
export default function useUrlPresets({ skip = false }: FetchProps = {}) {
|
||||
const { data, status, isError, refetch } = useQuery({
|
||||
queryKey: URL_PRESETS,
|
||||
queryFn: getUrlPresets,
|
||||
@@ -13,6 +17,7 @@ export default function useUrlPresets() {
|
||||
retryDelay: (attempt) => attempt * 2500,
|
||||
refetchInterval: queryRefetchIntervalSlow,
|
||||
networkMode: 'always',
|
||||
enabled: !skip,
|
||||
});
|
||||
|
||||
return { data: data ?? [], status, isError, refetch };
|
||||
|
||||
Reference in New Issue
Block a user