Added UI and implementation for the account settings tab.

Features:
* Add a new account.
* Switch accounts.
* Log out of an account.

Also added a cancel button to the login UI which is only shown when a user is adding an account. In that case, the operation should be and is cancellable.
This commit is contained in:
Daniel Scalzi
2018-05-30 22:22:17 -04:00
parent 2dcbb45bdb
commit 91c842dd40
7 changed files with 442 additions and 5 deletions

View File

@@ -116,6 +116,7 @@ document.getElementById('launch_button').addEventListener('click', function(e){
// Bind settings button
document.getElementById('settingsMediaButton').onclick = (e) => {
prepareSettings()
switchView(getCurrentView(), VIEWS.settings)
}