Add missing page state when containing redirect
This commit is contained in:
parent
9789496f8c
commit
c9dec6371d
|
@ -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",
|
||||
|
|
|
@ -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>`);
|
||||
|
|
Loading…
Reference in New Issue