Commit Graph

62 Commits

Author SHA1 Message Date
Dominik Csapak
29aedb75d6 make containerviewport stateful
with this patch, the split view saves its state
in the local storage, so that users don't lose this
after a refresh or even a new browser session
(only when they change browser/workstation)

if the window resizes (or refreshes),
the left/bottom panel gets resized to a sane width/height
in case this would be bigger than the viewport
to avoid an unusable interface

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-16 16:33:38 +02:00
Dominik Csapak
ec0bd652db jslint: fix type confusion and property access
fix various type confusion, for example:
items: {} and items: []
style: string and style: {}

also fix object['property'] access with
object.property

also fix /=/ with either '=' or /\=/ where appropriate
(/=/ can be confused with /= according to jslint)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-29 17:06:23 +02:00
Emmanuel Kasper
6a7465ae64 Move logout button to the top right corner of the workspace
This makes us similar to 90% of sites and thus make the interface
more familiar to new users.
2016-04-19 17:08:17 +02:00
Dominik Csapak
d1f155b8b0 add icons to Logout/Create VM/CT
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-11 11:50:18 +02:00
Dietmar Maurer
f76884fda7 Workspace: simplify layout 2016-03-31 13:30:41 +02:00
Dominik Csapak
834ba9e4ec ext6migrate: change setContent behaviour of workspace
instead of removing the current content and setting the new
we add the new content to the next card of the content container
(which now has the card layout, same as in the wizard)

then seamlessly change the active card, and then destroy the old card
with a delay

this has three reasons:
on a change, the panel does not flicker anymore
we give the old content time to finish ajax request (avoid race
conditions)
and we (hopefully) load the new content faster as the destroy
process can take some time

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-11 16:36:35 +01:00
Thomas Lamprecht
5fc9bddb07 ext6/triton: add some visual changes and fixes
They are mostly intended to save space as the "new theme", if it
gets applied, takes up space like it's worth pure gold.

Paddings get made smaller on buttons, tabs and grids.
Also let the main tree receive a sane space padding.

Further fix the height of the top info panel (the one with the logo,
PVE version, login button ...).

Also the "start/stop/more/..." buttons from the tool bar above the
navigation tab bar gets fixed.

Login panel got also some small fixes together with all input
fields.

We use simple CSS overrides to achieve this all.
Working with the scss (sass) files and rebuilding the theme would
be nicer, but as I have no intend to start working with senchas
"build system" and we self have no sane way for compiling the sass
stuff also, this is the preferred way for now.

We add a new css stylesheet so that the current manager remains
untouched by this changes.
2016-02-12 10:46:51 +01:00
Wolfgang Bumiller
c7f3280811 Close #822: show the nodename in the page title 2016-02-11 12:05:08 +01:00
Emmanuel Kasper
aeb5e2f63f replace object creation via 'new' with ExtJS methods
This makes the code more homogeneous and allows us to use the ExtJS
class autoloader in the future if we want (autoloader idea: ExtJS tries to load the
JS class file over HTTP based on the class name, no need to maintain a list
of includes)
2016-01-27 09:18:15 +01:00
Emmanuel Kasper
fb3877561f ext6migrate: fix ressource tree filter selection
the selection do not return an array but a single 'records' object
so records.length is always undefined
2016-01-27 09:17:53 +01:00
Emmanuel Kasper
6a71fe01f2 ext6migrate: Replace deprecated function which is missing in Ext6
See http://docs.sencha.com/extjs/5.1/5.1.0-apidocs/#!/api/Ext.container.Container-method-doLayout

This allows the pve manager to load
2016-01-22 11:24:12 +01:00
Dietmar Maurer
bac5bd135c rename manager5 to manager6 2016-01-22 11:24:10 +01:00