mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-31 15:45:23 +00:00
fix: load plugin strings on guest pages, plugin wording and drop unused keys
This commit is contained in:
1 parent
f803bfc140
commit
406766eddd
19 files changed
+81
-292
No files matched your search
@@ -6,7 +6,7 @@ import {
|
||||
statusCheckEnabled,
|
||||
} from "@/sidebar/tree/HostItem/HostItem";
|
||||
|
||||
// Minimal host factory – only the fields buildStatusTooltip reads.
|
||||
// Minimal host factory, only the fields buildStatusTooltip reads.
|
||||
function makeHost(overrides: Partial<Host> = {}): Host {
|
||||
return {
|
||||
id: 1,
|
||||
@@ -90,7 +90,7 @@ describe("buildStatusTooltip", () => {
|
||||
it("does not render key paths when a translator is supplied", () => {
|
||||
const host = makeHost();
|
||||
const tooltip = buildStatusTooltip(host, "online", t);
|
||||
// The tooltip must never show the raw key path – that means the
|
||||
// The tooltip must never show the raw key path, that means the
|
||||
// translation resource is missing, which is the bug #1265 fixed.
|
||||
expect(tooltip).not.toMatch(/hosts\.status\./);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user