Add missing page state when containing redirect

This commit is contained in:
Florine W. Dekker 2021-05-14 15:17:45 +02:00
parent 9789496f8c
commit c9dec6371d
Signed by: FWDekker
GPG Key ID: 78B3EAF58145AF25
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "interlanguage-checker",
"version": "1.11.6",
"version": "1.11.7",
"description": "Check the consistency of MediaWiki interlanguage links in a simple overview.",
"author": "Felix W. Dekker",
"browser": "dist/bundle.js",

View File

@ -354,6 +354,10 @@ export class InterlangTable {
return this._createIcon("rotate-left", "Links to its own wiki 😕", ["warning"]);
case "unlinked":
return this._createIcon("chain-broken", "Misses one or more links 😕", ["error"]);
case "redirected":
return this._createIcon("mail-forward", "Links to a redirect 😕", ["warning"]);
default:
throw new Error(`Invalid page state '${state}'`);
}
})
.map(it => `${it}<span> </span>`);