From 1e4343780497a964eb5d3b14b4a4482e25a295e6 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Wed, 31 Jul 2024 16:00:50 -0400 Subject: [PATCH] Minor fix for lightning plugin --- coreplugins/lightning/manifest.json | 2 +- coreplugins/lightning/public/Dashboard.jsx | 2 +- coreplugins/lightning/public/app.jsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/coreplugins/lightning/manifest.json b/coreplugins/lightning/manifest.json index 46320050..684001bf 100644 --- a/coreplugins/lightning/manifest.json +++ b/coreplugins/lightning/manifest.json @@ -2,7 +2,7 @@ "name": "Lightning", "webodmMinVersion": "0.7.1", "description": "Process in the cloud with webodm.net", - "version": "0.9.0", + "version": "1.0.0", "author": "Piero Toffanin", "email": "pt@masseranolabs.com", "repository": "https://github.com/OpenDroneMap/WebODM", diff --git a/coreplugins/lightning/public/Dashboard.jsx b/coreplugins/lightning/public/Dashboard.jsx index 2c4b03d2..47174234 100644 --- a/coreplugins/lightning/public/Dashboard.jsx +++ b/coreplugins/lightning/public/Dashboard.jsx @@ -113,7 +113,7 @@ export default class Dashboard extends React.Component { let balance = ""; if (user){ balance = ({ user.balance } {_("credits")}); - if (user.plan !== null){ + if (user.plan !== null && !user.node.limits.freeTasksPerMonth){ balance = ({_("Unlimited")}); } } diff --git a/coreplugins/lightning/public/app.jsx b/coreplugins/lightning/public/app.jsx index 718b47f1..b439d2fe 100644 --- a/coreplugins/lightning/public/app.jsx +++ b/coreplugins/lightning/public/app.jsx @@ -37,7 +37,7 @@ export default class LightningPanel extends React.Component { { !apiKey ?

{_("Lightning")}

- {_("Lightning is a service that allows you to quickly process small and large datasets using high performance servers in the cloud.")} +

{_("Lightning is a service that allows you to quickly process small and large datasets using high performance servers in the cloud.")}

webodm.net', register: `${_("register")}`}}> {_("Below you can enter your %(link)s credentials to sync your account and automatically setup a new processing node. If you don't have an account, you can %(register)s for free.")}