Commit Graph

27 Commits

Author SHA1 Message Date
Thomas Lamprecht
3bbce3b8cd drop jslint lines
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 18:11:47 +02:00
Dominik Csapak
1081c005f2 ui: Replication: use render_duration from widget-toolkit
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-06-02 11:47:43 +02:00
Thomas Lamprecht
0ee5a21ef1 use LogView from widget toolkit
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
2018-01-25 13:36:38 +01:00
Thomas Lamprecht
56a353b9e7 use RestProxy from widget toolkit
Split PVE specific models, which where not moved to the general
widget toolkit, in a separate folder: data/models/

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
2018-01-25 13:36:38 +01:00
Thomas Lamprecht
eaa018d71e use DiffStore from widget toolkit
The alias stayed the same (store.diff) so we need to change direct
usage of 'PVE.data.DiffStore' only.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
2018-01-25 13:36:38 +01:00
Thomas Lamprecht
9fccc702ec use windowEdit from widget toolkit
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
2018-01-25 13:36:38 +01:00
Thomas Lamprecht
896c0d5019 use Checkbox from widget toolkit
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
2018-01-25 13:36:38 +01:00
Dominik Csapak
e7ade592e3 use Proxmox.Utils instead of PVE.Utils
some function are now in Proxmox.Utils instead, so we have to use that

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-25 13:36:38 +01:00
Dominik Csapak
5720fafabc use Button from widget toolkit
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-25 13:36:37 +01:00
Dominik Csapak
3b1ca3ff5d use Proxmox.button.StdRemoveButton where possible
most 'Remove' buttons we have used the same code pattern over and over,
with the StdRemoveButton we have a component which does all of this for
us

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-25 13:36:37 +01:00
Dominik Csapak
0c7c0d6bcf use UpdateStore from widget toolkit
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-25 13:36:37 +01:00
Emmanuel Kasper
a29ff1bce4 Do not translate IT specific terms
Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
2017-11-28 11:24:52 +01:00
Dietmar Maurer
4029c97f08 Replication.js: translate 'Error' 2017-07-04 09:06:25 +02:00
Dietmar Maurer
d4177d53d5 avoid extra gettext string 2017-07-04 09:02:24 +02:00
Thomas Lamprecht
defa3bb78f replication: reuse fitting translations
while it does not makes sense do over-reuse translations for the sake
of translating less, imo, here we can safely reuse already existing
ones and pull out the unit 'MB/s' from the gettext.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-06-30 06:46:04 +02:00
Thomas Lamprecht
3b0ab40a2a replication; merge status and status text and add to dc mode
It was a bit strange to have two separate status columns, which do
effectively the same thing. So merge them together to save a bit
space and have less columns.

We do not need to translate 'Status Text' as a nice side effect.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-06-29 11:49:46 +02:00
Thomas Lamprecht
959f37afe2 replication: show disabled jobs and allow enabling/disabling
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-06-29 10:59:11 +02:00
Thomas Lamprecht
1ab33d14d2 replication: adapt help buttons reference
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-06-28 18:43:19 +02:00
Dietmar Maurer
85167e5edf replication GUI: add schedule now Button 2017-06-28 12:25:13 +02:00
Thomas Lamprecht
42b45f8fe8 replica: improve schedule format example
Add one more to show that also weekdays + intervals are possible

Further improve wording + reduce translation needs for others entries.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-06-28 11:31:39 +02:00
Thomas Lamprecht
aa5ce65a13 grid/replication: show textual description of default value
When a user sees this the first time and wants to add a job he
shouldn't be confused what the default value means, so display this
through the emptyText property, which does not get submitted to the
backend.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-06-28 09:57:38 +02:00
Thomas Lamprecht
7f15c83c03 replication/ui: improve wording for job removal
Delete the strange sounding Note from the Removal dialog.
This was added to make sure that an user isn't confused that a Job is
still shown after 'removing' it. But it isn't needed as there is
already noted in the jobs status that it will get removed soon after
doing so, so the user sees that his action had the desired effect, no
extra note needed.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-06-27 15:29:40 +02:00
Dominik Csapak
17975935b3 better default column sizes for replication grid
to see the full date, and save space from the other columns

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-22 10:09:18 +02:00
Dominik Csapak
79b04dba79 change default replication status text to 'OK'
The status '-' can confuse users, as it could indicate something is
missing, whereas OK indicates everything is alright (which is the status
we want to show)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-22 10:09:07 +02:00
Emmanuel Kasper
0b142737f7 Better Status description for jobs which are about to be run 2017-06-22 09:52:48 +02:00
Dominik Csapak
de2022b85c use correct vmid for id when in vm replication panel
values.guest is only available when the field 'guest' is not a
displayfield (e.g. when in vm replication panel), so we have to
use the given vmid first and only when this is not available, fall back
to the value of the field

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-14 10:23:01 +02:00
Dominik Csapak
9058a478af add replication grid
this patch adds a replication grid, which shows the status/configuration
for the defined replication jobs, and allow them to be
added/edited/removed

in case the replication grid gets shown in the datacenter, we omit the
status fields, because we only have the configuration there

when opening the grid, we check if there are at least two nodes,
because currently we only allow replication in a cluster environment

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