Make totp new a button instead o a link.
This commit is contained in:
parent
f4cf50bb27
commit
f3060ae507
|
@ -31,10 +31,11 @@ export class TOTPViewPage extends Page {
|
|||
tag: "div",
|
||||
children: [
|
||||
makeElement({
|
||||
tag: "a",
|
||||
tag: "button",
|
||||
text: i18next.t("totp_view_new_btn"),
|
||||
onclick: () => {
|
||||
void changePage("NEW_TOTP");
|
||||
class: ["uk-button", "uk-button-primary", "uk-margin-bottom"],
|
||||
onclick: async () => {
|
||||
await changePage("NEW_TOTP");
|
||||
},
|
||||
}),
|
||||
makeElement({
|
||||
|
|
2
src/translations/en.js
vendored
2
src/translations/en.js
vendored
|
@ -137,7 +137,7 @@ module.exports = {
|
|||
|
||||
// TOTP View Page
|
||||
totp_view_title: "TOTP",
|
||||
totp_view_new_btn: "Add new TOTP key",
|
||||
totp_view_new_btn: "New",
|
||||
totp_view_loading: "Loading TOTP Codes..",
|
||||
totp_view_empty: "You seem to have no TOTP codes here, would you like to create one?",
|
||||
totp_view_loading_box: "Loading..",
|
||||
|
|
Loading…
Reference in a new issue