Minimal changes to the change log update window
This commit is contained in:
parent
6a2b592817
commit
1435042413
2 changed files with 2 additions and 5 deletions
|
@ -112,7 +112,7 @@ export const WhatsNew = (props: { changesUI?: ChangeLog, changesClient?: ChangeL
|
||||||
infoText = <VariadicTranslatable key={"info-native-ui"} text={"The native clients UI has been updated to the version from 18.08.2020."}>{versionUIDate}</VariadicTranslatable>;
|
infoText = <VariadicTranslatable key={"info-native-ui"} text={"The native clients UI has been updated to the version from 18.08.2020."}>{versionUIDate}</VariadicTranslatable>;
|
||||||
}
|
}
|
||||||
|
|
||||||
const changes = [ changesUI, changesClient ].filter(e => !!e);
|
const changes = [ changesClient, changesUI ].filter(e => !!e);
|
||||||
return (
|
return (
|
||||||
<div className={cssStyle.container}>
|
<div className={cssStyle.container}>
|
||||||
<div className={cssStyle.info}>
|
<div className={cssStyle.info}>
|
||||||
|
|
|
@ -3,7 +3,7 @@ import * as loader from "tc-loader";
|
||||||
import {Stage} from "tc-loader";
|
import {Stage} from "tc-loader";
|
||||||
import {setUIUpdater} from "tc-shared/update/index";
|
import {setUIUpdater} from "tc-shared/update/index";
|
||||||
import {Updater} from "tc-shared/update/Updater";
|
import {Updater} from "tc-shared/update/Updater";
|
||||||
import {LogCategory, logError, logWarn} from "tc-shared/log";
|
import {LogCategory, logError} from "tc-shared/log";
|
||||||
|
|
||||||
const ChangeLogContents: string = require("../../../ChangeLog.md");
|
const ChangeLogContents: string = require("../../../ChangeLog.md");
|
||||||
const EntryRegex = /^\* \*\*([0-9]{2})\.([0-9]{2})\.([0-9]{2})\*\*$/m;
|
const EntryRegex = /^\* \*\*([0-9]{2})\.([0-9]{2})\.([0-9]{2})\*\*$/m;
|
||||||
|
@ -47,9 +47,6 @@ function parseChangeLogEntry(lines: string[], index: number) : { entries: Change
|
||||||
currentEntry = trimmed.substr(1).trim();
|
currentEntry = trimmed.substr(1).trim();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if(typeof currentEntry === "undefined")
|
|
||||||
throw "this should never happen!";
|
|
||||||
|
|
||||||
currentEntry += "\n" + trimmed;
|
currentEntry += "\n" + trimmed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue