electron app starting

This commit is contained in:
Jan Prochazka
2021-12-16 11:46:33 +01:00
parent 0a7c56dace
commit e636987f31
60 changed files with 132 additions and 129 deletions

View File

@@ -27,13 +27,13 @@
$: isPackaged = $info?.isPackaged;
const handleInstall = async () => {
axiosInstance.post('plugins/install', { packageName });
axiosInstance().post('plugins/install', { packageName });
};
const handleUninstall = async () => {
axiosInstance.post('plugins/uninstall', { packageName });
axiosInstance().post('plugins/uninstall', { packageName });
};
const handleUpgrade = async () => {
axiosInstance.post('plugins/upgrade', { packageName });
axiosInstance().post('plugins/upgrade', { packageName });
};
$: installedFound = $installed?.find(x => x.name == packageName);