feat(tab_navigation): functional back/forward buttons

This commit is contained in:
Elian Doran 2025-12-09 14:09:31 +02:00
parent 346ad1e8a3
commit e3f5b3535a
No known key found for this signature in database
2 changed files with 18 additions and 4 deletions

View File

@ -2117,5 +2117,9 @@
"unknown_http_error_title": "Communication error with the server",
"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."
},
"tab_history_navigation_buttons": {
"go-back": "Go back to previous note",
"go-forward": "Go forward to next note"
}
}

View File

@ -1,11 +1,21 @@
import ActionButton from "./react/ActionButton";
import "./TabHistoryNavigationButtons.css";
import { t } from "../services/i18n";
import ActionButton from "./react/ActionButton";
export default function TabHistoryNavigationButtons() {
return (
<div className="tab-history-navigation-buttons">
<ActionButton icon="bx bx-left-arrow-alt" />
<ActionButton icon="bx bx-right-arrow-alt" />
<ActionButton
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>
)
);
}