Updates to shortRevision() display stuff. Fixes #1409

pull/1418/head
Rick Carlino 2019-09-07 11:10:28 -05:00
parent 3a4b4c2db7
commit f7b645d580
3 changed files with 3 additions and 9 deletions

View File

@ -1,5 +1,5 @@
import { detectLanguage } from "../i18n";
import { shortRevision, attachToRoot } from "../util";
import { attachToRoot } from "../util";
import { stopIE } from "../util/stop_ie";
import I from "i18next";
import { DemoIframe } from "./demo_iframe";
@ -8,7 +8,6 @@ import { DemoIframe } from "./demo_iframe";
stopIE();
console.log(shortRevision());
const doAttach = () => attachToRoot(DemoIframe);
const loadDemo =
(config: I.InitOptions) => I.init(config, doAttach);

View File

@ -4,13 +4,10 @@
*
* Try to keep this file light. */
import { detectLanguage } from "./i18n";
import { shortRevision } from "./util";
import { stopIE } from "./util/stop_ie";
import { attachAppToDom } from "./routes";
import I from "i18next";
stopIE();
console.log(shortRevision());
detectLanguage().then(config => I.init(config, attachAppToDom));

View File

@ -39,10 +39,8 @@ export const AdditionalMenu = (props: AccountMenuProps) => {
</div>
<div className="app-version">
<label>{t("VERSION")}</label>:&nbsp;
<a
href="https://github.com/FarmBot/Farmbot-Web-App"
target="_blank">
{shortRevision().slice(0, 7)}<p>{shortRevision().slice(7, 8)}</p>
<a href="https://github.com/FarmBot/Farmbot-Web-App" target="_blank">
{shortRevision().slice(0, 7)}
</a>
</div>
</div>;