Add new variable for version up to date message
Fixes error TS2740 reported by TypeScript. Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
parent
03b8efdc5e
commit
edc4a0d41f
@ -88,8 +88,9 @@ const GitInfo = {
|
||||
$('#maincontainer').append($(mainContainerDiv));
|
||||
}
|
||||
|
||||
let upToDateMessage: Text | null = null;
|
||||
if (latest === current) {
|
||||
versionInformationMessage = document.createTextNode(' (' + window.Messages.strUpToDate + ')');
|
||||
upToDateMessage = document.createTextNode(' (' + window.Messages.strUpToDate + ')');
|
||||
}
|
||||
|
||||
/* Remove extra whitespace */
|
||||
@ -100,7 +101,11 @@ const GitInfo = {
|
||||
|
||||
const $liPmaVersion = $('#li_pma_version');
|
||||
$liPmaVersion.find('span.latest').remove();
|
||||
$liPmaVersion.append($(versionInformationMessage));
|
||||
if (upToDateMessage !== null) {
|
||||
$liPmaVersion.append($(upToDateMessage));
|
||||
} else {
|
||||
$liPmaVersion.append($(versionInformationMessage));
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@ -21,7 +21,6 @@ const typeScriptErrorsToIgnore = [
|
||||
2469, // TS2469: The '+' operator cannot be applied to type 'symbol'.
|
||||
2538, // TS2538: Type '%s' cannot be used as an index type.
|
||||
2551, // TS2551: Property '%s' does not exist on type '%s'. Did you mean '%s'?
|
||||
2740, // TS2740: Type 'Text' is missing the following properties from type 'HTMLSpanElement': accessKey, accessKeyLabel, autocapitalize, dir, and 226 more.
|
||||
2769, // TS2769: No overload matches this call.
|
||||
5096, // TS5096: Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set.
|
||||
];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user