Commit Graph

12 Commits

Author SHA1 Message Date
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
afbec2f819 check if current StateProvider is already the right one
else we get an error on logout -> login

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-04 12:55:26 +02:00
Dominik Csapak
2468e1a139 jslint: empty block
reverse logic of if block to avoid empty block

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-28 14:42:52 +02:00
Dominik Csapak
6355fc2cfe jslint: correct escaping
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-28 14:42:39 +02:00
Dominik Csapak
ea07c9aa8e jslint: type confusion
fix many type confusions

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-28 14:42:13 +02:00
Dominik Csapak
749af0601a jslint: trailing commas
fix many trailing commas

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-28 14:41:43 +02:00
Dominik Csapak
2c1d504e90 jslint: globals
adds the global object proxmox to most files

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-28 14:41:31 +02:00
Dietmar Maurer
6a3d1c515b add online help 2017-09-27 10:06:13 +02:00
Dominik Csapak
2c866ec990 make navigation tree scrollable
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-19 11:43:20 +02:00
Dietmar Maurer
a27e6c36b7 set state provider 2017-08-29 11:13:57 +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
Dominik Csapak
9d91eeb07a add mainview component
this is the mainview component, which replaces partly the pmg workspace

it is responsible for creating the components from the navigation,
and do the routing

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