Commit Graph

12 Commits

Author SHA1 Message Date
Thomas Lamprecht
28eb60c0bd eslint fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-30 14:08:16 +01:00
Thomas Lamprecht
a36756b058 drop jslint hint for Proxmox global
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-23 14:03:17 +02:00
Thomas Lamprecht
c87d46fbe8 tree wide: eslint --fix
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-23 13:17:15 +02:00
Dominik Csapak
771bd0b94b jslint: remove trailing commas
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-23 17:29:17 +02:00
Dominik Csapak
ff735274ca jslint: add Proxmox global to files
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-23 17:28:56 +02:00
Dietmar Maurer
fcf672c579 Application.js: remove trailing slash from pathname
To correctly detect /quarantine/ and /quarantine
2017-10-11 08:16:57 +02:00
Dietmar Maurer
6cbc3de350 Application.js - initialize state provider here
So that we can also use it for LoginView.
2017-10-06 12:35:18 +02:00
Dominik Csapak
99bba12c7f improve login/logout/cookie behaviour
this changes the login/logout/cookie behaviour

if you go to /quarantine
    you get to the loginview
    except you have a valid cookie
    or you have a ticket via url (this takes precedence)

    when you have a valid login
	you go to the quarantineview
else if you have not a quarantine ticket
    you get to the mainview
else
    you get to the loginview

also adds a logout button to the quarantineview
and moves the viewchange/logout logic to the Application.js

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-05 12:51:38 +02:00
Dominik Csapak
9bdd2de318 save info about which view is used
this is later needed for the spamquarantine, to determine
if we are in the admin view or quarantine view

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-08-23 12:37:20 +02:00
Dominik Csapak
033228c06d let the default token be chosen by the view
instead of the application, since we want a different default
token for the admin view and the quarantine view

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-08-18 16:26:57 +02:00
Dietmar Maurer
0277bfebf0 add new quarantine view 2017-04-30 11:19:28 +02:00
Dominik Csapak
8a20ffa56a add application
this is the main application class, which is responsible for loading
the main/login view

also for recentering modal windows

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-04-05 06:46:06 +02:00