diff --git a/package.json b/package.json index 90a6c75..8917d96 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "msupply-foundation-excel-report-email-scheduler", - "version": "2.0.0", + "version": "2.0.02", "description": "Grafana plugin for mSupply Dashboard application. The plugin takes data from panels of mSupply dashboard to generate excel reports. The reports are then emailed to a custom user group created with mSupply users pulled from mSupply Dashboard's datasource. The timing of the scheduler can be set in the plugin.", "scripts": { "build": "rm -rf dist && yarn build:frontend && mage -v && yarn sign", @@ -10,7 +10,7 @@ "typecheck": "tsc --noEmit", "lint": "eslint --cache --ignore-path ./.gitignore --ext .js,.jsx,.ts,.tsx .", "lint:fix": "yarn lint --fix", - "sign": "rm -rf ./dist/.DS_Store & grafana-toolkit plugin:sign --signatureType private --rootUrls https://demo-board.msupply.org:3000,https://ci.msupply.org:3000,https://liberia.msupply.org:3000,https://tonga-vax.msupply.org:3000,https://timor.msupply.org:3000,http://localhost:3000,https://vanuatu-vax.msupply.org:3000,https://tokelau.msupply.org:3000,https://tonga.msupply.org:3000,https://who-demo.msupply.org:3000,https://msupply.health.gov.ws:3000", + "sign": "rm -rf ./dist/.DS_Store & grafana-toolkit plugin:sign --signatureType private --rootUrls https://demo-board.msupply.org:3000,https://png.msupply.org:3000,https://ci.msupply.org:3000,https://liberia.msupply.org:3000,https://tonga-vax.msupply.org:3000,https://timor.msupply.org:3000,http://localhost:3000,https://vanuatu-vax.msupply.org:3000,https://tokelau.msupply.org:3000,https://tonga.msupply.org:3000,https://who-demo.msupply.org:3000,https://msupply.health.gov.ws:3000", "start": "yarn dev:frontend" }, "author": "mSupply Foundation", diff --git a/src/components/AppConfigForm.tsx b/src/components/AppConfigForm.tsx index 2de3fa5..4de78f2 100644 --- a/src/components/AppConfigForm.tsx +++ b/src/components/AppConfigForm.tsx @@ -34,10 +34,15 @@ const AppConfigForm = ({ plugin }: Props) => { }); useEffect(() => { - intl.init({ currentLocale: 'en', locales }).then(() => { - // After loading locale data, start to render - setLoading(false); - }); + intl + .init({ + currentLocale: 'en-US', + locales, + }) + .then(() => { + // After loading locale data, start to render + setLoading(false); + }); }, []); const onResetGrafanaPassword = () => @@ -108,160 +113,162 @@ const AppConfigForm = ({ plugin }: Props) => { } return ( -
- {/* Grafana Username */} -
- - - + !loading && ( +
+ {/* Grafana Username */} +
+ + + - - - + + + - - - -
+ + + +
-
- - - +
+ + + - - - + + + - - - + + + - - - -
+ + + +
-
- - - -
+
+ + + +
-
- +
+ +
-
+ ) ); };