chore(options/backup): use action button for download

This commit is contained in:
Elian Doran
2026-04-13 16:11:02 +03:00
parent 66347e4bad
commit d716fec524
2 changed files with 8 additions and 2 deletions

View File

@@ -346,3 +346,9 @@ nav.options-section-tabs + .options-section {
.etapi-options-section div {
height: auto !important;
}
/* BACKUP */
.options-section table a {
color: inherit;
}

View File

@@ -5,7 +5,7 @@ import { t } from "../../../services/i18n";
import server from "../../../services/server";
import toast from "../../../services/toast";
import { formatDateTime } from "../../../utils/formatters";
import Button from "../../react/Button";
import ActionButton from "../../react/ActionButton";
import FormText from "../../react/FormText";
import { useTriliumOptionBool } from "../../react/hooks";
import { OptionsRowWithButton, OptionsRowWithToggle } from "./components/OptionsRow";
@@ -107,7 +107,7 @@ export function BackupList({ backups }: { backups: DatabaseBackup[] }) {
<td className="selectable-text">{filePath}</td>
<td>
<a href={`api/database/backup/download?filePath=${encodeURIComponent(filePath)}`} download>
<Button text={t("backup.download")} />
<ActionButton icon="bx bx-download" text={t("backup.download")} />
</a>
</td>
</tr>