mirror of
https://github.com/zadam/trilium.git
synced 2026-05-07 11:17:01 +02:00
chore(options/backup): use action button for download
This commit is contained in:
@@ -346,3 +346,9 @@ nav.options-section-tabs + .options-section {
|
||||
.etapi-options-section div {
|
||||
height: auto !important;
|
||||
}
|
||||
|
||||
/* BACKUP */
|
||||
|
||||
.options-section table a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user