1
0
Fork 0

Make totp new a button instead o a link.

This commit is contained in:
Kitteh 2021-05-13 11:56:15 +01:00
parent f4cf50bb27
commit f3060ae507
2 changed files with 5 additions and 4 deletions

View file

@ -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({

View file

@ -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..",