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>
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>
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>
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>
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>
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>
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>
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>