Selaa lähdekoodia

Fix install app response

Nicolas Meienberger 3 vuotta sitten
vanhempi
commit
6efa4f2ea9

+ 2 - 2
packages/dashboard/src/pages/settings.tsx

@@ -11,7 +11,7 @@ const Settings: NextPage = () => {
   const isLatest = latestVersion === `v${Package.version}`;
   const isLatest = latestVersion === `v${Package.version}`;
 
 
   const renderUpdate = () => {
   const renderUpdate = () => {
-    if (!isLatest) {
+    if (isLatest) {
       return (
       return (
         <Text fontSize="md" color="green.500">
         <Text fontSize="md" color="green.500">
           Your Tipi install is up to date. Version {Package.version}
           Your Tipi install is up to date. Version {Package.version}
@@ -24,7 +24,7 @@ const Settings: NextPage = () => {
         You are not using the latest version of Tipi. There is a new version ({latestVersion}) available. Visit{' '}
         You are not using the latest version of Tipi. There is a new version ({latestVersion}) available. Visit{' '}
         <a className="text-blue-600" target="_blank" rel="noreferrer" href={`https://github.com/meienberger/runtipi/releases/${latestVersion}`}>
         <a className="text-blue-600" target="_blank" rel="noreferrer" href={`https://github.com/meienberger/runtipi/releases/${latestVersion}`}>
           Github
           Github
-        </a>
+        </a>{' '}
         for update instructions.
         for update instructions.
       </Text>
       </Text>
     );
     );

+ 2 - 0
packages/system-api/src/modules/apps/apps.controller.ts

@@ -104,6 +104,8 @@ const installApp = async (req: Request, res: Response, next: NextFunction) => {
     }
     }
 
 
     await AppsService.installApp(id, form);
     await AppsService.installApp(id, form);
+
+    res.status(200).json({ message: 'App installed successfully' });
   } catch (e) {
   } catch (e) {
     next(e);
     next(e);
   }
   }