docs: update documentation for implicit dependencies resolution

This commit is contained in:
2024-08-07 18:22:18 +03:00
parent 434057ec49
commit 3c7c748b4a
9 changed files with 56 additions and 25 deletions

View File

@@ -53,10 +53,13 @@
contentType: "application/json",
success: _ => {
loginModal.modal("hide");
showSuccess("Logged in", `Successfully logged in as ${username}`, () => location.href = "/");
showSuccess("Logged in", `Successfully logged in as ${username}`, _ => location.href = "/");
},
error: (jqXHR, _, errorThrown) => {
const message = _ => `Could not login as ${username}`;
const message = _ =>
username === "admin" && password === "admin"
? "You've entered a password for user \"root\", did you make a typo in username?"
: `Could not login as ${username}`;
showFailure("Login error", message, jqXHR, errorThrown);
},
});
@@ -75,8 +78,8 @@
}
}
$(() => {
loginModal.on("hidden.bs.modal", () => {
$(_ => {
loginModal.on("hidden.bs.modal", _ => {
loginForm.trigger("reset");
});
});