Commit Graph

20 Commits

Author SHA1 Message Date
Thomas Lamprecht
50e8bf4419 input panel: call setValue on all fields
Fixes the displayedit field and makes some rarer case much easier to
do. Normally we only need this if there are two viewmodel synced
fields, where only one is enabled at a time..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-19 21:17:25 +02:00
Thomas Lamprecht
68689d7374 indentation cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-01-30 17:50:25 +01:00
Aaron Lauterer
13fc756dfd tree-wide trailing whitespace cleanup
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-09-30 08:00:34 +02:00
Thomas Lamprecht
70df8f46be followup: elaborate a bit more why there could be no content
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-15 13:18:08 +02:00
Thomas Lamprecht
cd82be4911 followup: pull out 'Since/Until' to remove extra whitespace
This is similar to how we did in panel/LogView but adds disabling
also to the label, not only the picker field, which is a bit nicer.

And no, it really does not seems like this can be done easier...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-15 13:14:12 +02:00
Dominik Csapak
a1498508da add panel/JournalView
similar to LogView, but expects the result from the /node/journal api call,
which is an array of strings, with start/endcursor instead of
an array of objects with line numbers

the new api call also does not accept start line numbers and limit,
so it is necessary to handle it differently

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-05-15 11:44:21 +02:00
Thomas Lamprecht
72be386c64 LogView: also reduce log syscall on scrolling
move the "return early, because a request is already pending" into
the doLoad function, so that all calls to it underly the request
limiting, but note that such a new request is desired, and if so
schedule it once the current finishes. This ensures that scrolling
will always get honored, but does not produces multiple hanging
workers, at max one.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-07 15:11:38 +00:00
Dominik Csapak
7f9a65672a reduce syslog api calls
do not poll the syslog api call multiple times simultaneously,
since it can be very costly, depending on the journal size

with this, there is always only one per client

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-04-30 13:28:00 +00:00
Dominik Csapak
65bb3b678f rework panel/LogView
use the view, viewmodel, controller style code, which makes the logic
much more understandable

this adds two features to it, namely a viewBuffer range, which controls
the distance to the end of the data on which the panel loads the next data
and an optional failCallback, which will be used for the cephlog

this also fixes #2151

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-04-02 12:52:05 +02:00
Dominik Csapak
33a4fc355c add advanced options to the input panel
with this, you can now put items in the
advancedColumn1/2/B and show/hide it with
setAdvancedVisible

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-04-06 10:05:33 +02:00
Dominik Csapak
4b23ab8806 rename pve(Show|Hide)Help events
we renamed them in the helpButton, we also have to rename them here
this prevented the help button to show up in the vm/ct creation wizard

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-02-13 16:12:50 +01:00
Dominik Csapak
cf4ecb2bfe check earlier if the logview is destroyed
this is a port from pve-manager commit:
bde1efbf66cf8794d99708b41d92b2106c44f192

which fixes a problem with destroying the logview in extjs 6.2
2018-01-11 14:48:13 +01:00
Dominik Csapak
9950ec0f7d RRDChart.js: add the seriesConfig parameter
so that we can override the the series with custom options like 'color'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-11 06:46:50 +02:00
Dominik Csapak
fcb5b70f0e RRDChart.js: add the noTool parameter
so that we can omit the panel header

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-11 06:45:39 +02:00
Dominik Csapak
51613acea2 RRDChart.js: use the fieldtitle or fieldname as axistitle
if no unit applies

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-11 06:45:06 +02:00
Dominik Csapak
e7ff021c57 add GaugeWidget from PVE
and adds the functionality to set a different fontsize

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-11 06:41:30 +02:00
Dietmar Maurer
0c786d2b08 add RRDChart class 2017-08-29 08:43:50 +02:00
Dietmar Maurer
cc315e82e8 InputPanel: allow 4 column layout 2017-02-28 16:31:57 +01:00
Dietmar Maurer
89796c1a8e add InputPanel.js
Copied from pve-manager
2017-01-31 17:08:47 +01:00
Dietmar Maurer
de2e10b511 add log viewer class
Copied from pve-manager
2017-01-31 11:58:53 +01:00