Skip to content

Commit

Permalink
More little TS fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
BusterNeece committed Jan 19, 2025
1 parent ba2a730 commit 0f5e4c4
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions frontend/components/Public/Podcasts/PodcastCommon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<p class="card-text">
{{ podcast.description }}
</p>
<!-- @vue-expect-error API mistype on Podcast branding config. -->
<p
v-if="podcast.branding_config.public_custom_html"
class="card-text"
Expand Down
1 change: 1 addition & 0 deletions frontend/components/Public/WebDJ/PlaylistPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ const onFileSelected = (e: Event) => {
interface PlayOptions {
isAutoPlay?: boolean,
backward?: boolean,
fileIndex?: number
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Stations/Mounts/EditModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const {
reset();
},
populateForm: (data, formRef) => {
record.value = data;
record.value = mergeExisting(record.value, data as typeof record.value);
formRef.value = mergeExisting(formRef.value, data);
},
onSubmitSuccess: () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@ import {useAzuraCastStation} from "~/vendor/azuracast.ts";
const props = withDefaults(
defineProps<{
id: string,
modelValue?: number
modelValue?: string | number | null
}>(),
{
modelValue: null
}
);
const emit = defineEmits(['update:modelValue']);
const emit = defineEmits<{
(e: 'update:modelValue', value: number | null)
}>();
const publishDate = ref<string>('');
const publishTime = ref<string>('');
Expand All @@ -47,7 +49,7 @@ const {timezone} = useAzuraCastStation();
watch(toRef(props, 'modelValue'), (publishAt) => {
if (publishAt !== null) {
const publishDateTime = DateTime.fromSeconds(publishAt, {zone: timezone});
const publishDateTime = DateTime.fromSeconds(Number(publishAt), {zone: timezone});
publishDate.value = publishDateTime.toISODate();
publishTime.value = publishDateTime.toISOTime({
suppressMilliseconds: true,
Expand Down
6 changes: 4 additions & 2 deletions frontend/components/Stations/Podcasts/PodcastEditModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ const {
$modal,
{
artwork_file: {},
categories: {}
},
{
artwork_file: null
artwork_file: null,
categories: []
},
{
resetForm: (originalResetForm) => {
Expand All @@ -104,7 +106,7 @@ const {
(row) => row.category
);
record.value = data;
record.value = mergeExisting(record.value, data as typeof record.value);
formRef.value = mergeExisting(formRef.value, data);
},
},
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Stations/Streamers/EditModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const {
reset();
},
populateForm: (data, formRef) => {
record.value = mergeExisting(record.value, data);
record.value = mergeExisting(record.value, data as typeof record.value);
formRef.value = mergeExisting(formRef.value, data);
},
},
Expand Down

0 comments on commit 0f5e4c4

Please sign in to comment.