feat: refactor whole bunch of stuff
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
import { Movie } from "@lib/resource/movies.ts";
|
||||
import { TMDBMovie } from "@lib/types.ts";
|
||||
import { getCookie } from "@lib/string.ts";
|
||||
import { MenuEntry } from "../types.ts";
|
||||
import { ReviewResource } from "@lib/marka/schema.ts";
|
||||
|
||||
export const addMovieInfos: MenuEntry = {
|
||||
title: "Add Movie infos",
|
||||
@@ -9,7 +9,7 @@ export const addMovieInfos: MenuEntry = {
|
||||
icon: "IconReportSearch",
|
||||
cb: async (state, context) => {
|
||||
state.activeState.value = "loading";
|
||||
const movie = context as Movie;
|
||||
const movie = context as ReviewResource;
|
||||
|
||||
const query = movie.name;
|
||||
|
||||
@@ -33,7 +33,7 @@ export const addMovieInfos: MenuEntry = {
|
||||
});
|
||||
state.visible.value = false;
|
||||
state.activeState.value = "normal";
|
||||
window.location.reload();
|
||||
globalThis.location.reload();
|
||||
},
|
||||
})),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user