Browse Source

Merge branch '0.0.6' of github.com:owncast/owncast-admin into 0.0.6

pull/1886/head
gingervitis 5 years ago
parent
commit
4a7bdd035d
  1. 8
      web/components/config/video-variant-form.tsx
  2. 2
      web/utils/config-constants.tsx

8
web/components/config/video-variant-form.tsx

@ -79,18 +79,18 @@ export default function VideoVariantForm({ @@ -79,18 +79,18 @@ export default function VideoVariantForm({
};
const handleScaledWidthChanged = (args: UpdateArgs) => {
const value = Number(args.value);
if (!isNaN(value)) {
if (isNaN(value)) {
return;
}
onUpdateField({ fieldName: 'scaledWidth', value: value });
onUpdateField({ fieldName: 'scaledWidth', value: value || '' });
};
const handleScaledHeightChanged = (args: UpdateArgs) => {
const value = Number(args.value);
if (!isNaN(value)) {
if (isNaN(value)) {
return;
}
onUpdateField({ fieldName: 'scaledHeight', value: value });
onUpdateField({ fieldName: 'scaledHeight', value: value || '' });
};
const framerateDefaults = VIDEO_VARIANT_DEFAULTS.framerate;
const framerateMin = framerateDefaults.min;

2
web/utils/config-constants.tsx

@ -81,7 +81,7 @@ export const TEXTFIELD_PROPS_LOGO = { @@ -81,7 +81,7 @@ export const TEXTFIELD_PROPS_LOGO = {
placeholder: '/img/mylogo.png',
label: 'Logo',
tip:
'Path to your logo from website root. We recommend that you use a square image that is at least 256x256. (upload functionality coming soon)',
'Name of your logo in the data directory. We recommend that you use a square image that is at least 256x256.',
};
export const TEXTFIELD_PROPS_STREAM_KEY = {
apiPath: API_STREAM_KEY,

Loading…
Cancel
Save