mirror of
https://github.com/zadam/trilium.git
synced 2025-12-12 10:24:23 +01:00
feat(tab_navigation): functional back/forward buttons
This commit is contained in:
parent
346ad1e8a3
commit
e3f5b3535a
@ -2117,5 +2117,9 @@
|
|||||||
"unknown_http_error_title": "Communication error with the server",
|
"unknown_http_error_title": "Communication error with the server",
|
||||||
"unknown_http_error_content": "Status code: {{statusCode}}\nURL: {{method}} {{url}}\nMessage: {{message}}",
|
"unknown_http_error_content": "Status code: {{statusCode}}\nURL: {{method}} {{url}}\nMessage: {{message}}",
|
||||||
"traefik_blocks_requests": "If you are using the Traefik reverse proxy, it introduced a breaking change which affects the communication with the server."
|
"traefik_blocks_requests": "If you are using the Traefik reverse proxy, it introduced a breaking change which affects the communication with the server."
|
||||||
|
},
|
||||||
|
"tab_history_navigation_buttons": {
|
||||||
|
"go-back": "Go back to previous note",
|
||||||
|
"go-forward": "Go forward to next note"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,11 +1,21 @@
|
|||||||
import ActionButton from "./react/ActionButton";
|
|
||||||
import "./TabHistoryNavigationButtons.css";
|
import "./TabHistoryNavigationButtons.css";
|
||||||
|
|
||||||
|
import { t } from "../services/i18n";
|
||||||
|
import ActionButton from "./react/ActionButton";
|
||||||
|
|
||||||
export default function TabHistoryNavigationButtons() {
|
export default function TabHistoryNavigationButtons() {
|
||||||
return (
|
return (
|
||||||
<div className="tab-history-navigation-buttons">
|
<div className="tab-history-navigation-buttons">
|
||||||
<ActionButton icon="bx bx-left-arrow-alt" />
|
<ActionButton
|
||||||
<ActionButton icon="bx bx-right-arrow-alt" />
|
icon="bx bx-left-arrow-alt"
|
||||||
|
text={t("tab_history_navigation_buttons.go-back")}
|
||||||
|
triggerCommand="backInNoteHistory"
|
||||||
|
/>
|
||||||
|
<ActionButton
|
||||||
|
icon="bx bx-right-arrow-alt"
|
||||||
|
text={t("tab_history_navigation_buttons.go-forward")}
|
||||||
|
triggerCommand="forwardInNoteHistory"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user