Skip to content

Commit

Permalink
refactor: app download and upgrade (#6)
Browse files Browse the repository at this point in the history
重构应用的安装和升级方式,修复检测更新时无法点击立即更新的问题。

/kind improvement

```release-note
None
```
  • Loading branch information
ruibaby authored Sep 7, 2023
1 parent fbad0fd commit c476ab7
Show file tree
Hide file tree
Showing 3 changed files with 153 additions and 177 deletions.
6 changes: 4 additions & 2 deletions console/src/components/detail/DetailReleaseItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ import TablerCloudDownload from "~icons/tabler/cloud-download";
const props = withDefaults(
defineProps<{
release: ReleaseDetail;
app: ApplicationSearchResult;
app?: ApplicationSearchResult;
}>(),
{}
{
app: undefined,
}
);
const { app } = toRefs(props);
Expand Down
2 changes: 1 addition & 1 deletion console/src/composables/use-app-compare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function useAppCompare(app: Ref<ApplicationSearchResult | undefined>) {
});

const { data: installedThemes } = useQuery<Theme[]>({
queryKey: ["installed-themes"],
queryKey: ["themes"],
queryFn: async () => {
const { data } = await axios.get<ThemeList>("/apis/api.console.halo.run/v1alpha1/themes?uninstalled=false");
return data.items;
Expand Down
Loading

0 comments on commit c476ab7

Please sign in to comment.