diff --git a/www/js/app.js b/www/js/app.js index 7555684..4c636ef 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -89,8 +89,11 @@ function addnavbarbtn(screenid, icon, title) { } /** - * Hide the back arrow if screenid === false, otherwise show it and have it open screenid - * @param String screenid The ID of the screen to open when pressed. + * Set the navbar options. + * + * @param String title Text to display + * @param boolean showarrow True if the back arrow should be visible + * @param Stringn backscreen The screen to open when the title is pressed, false or null for none * @returns {undefined} */ function setnavbartitle(title, showarrow, backscreen) { @@ -153,7 +156,7 @@ function setnavbar(type, screentitle, returnscreen) { break; case "otp": setnavbartitle("Auth Keys", true, "home"); - addnavbarbtn("addotp", "ic_add.svg", "Add Code"); + addnavbarbtn("addotp", "ic_add.svg", "Add Key"); break; case "app": setnavbartitle(screentitle, true, returnscreen); diff --git a/www/views/settings.html b/www/views/settings.html index 9b5c067..74e0884 100644 --- a/www/views/settings.html +++ b/www/views/settings.html @@ -1,6 +1,14 @@ +