Commit Graph

22 Commits

Author SHA1 Message Date
Thomas Lamprecht
9afda559ff followup: use boxLabel to avoid big labelWidths
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-10-25 17:38:57 +02:00
Christian Ebner
743b391c50 fix #1291: add purge checkbox to VM/CT destroy dialog
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2019-10-24 13:48:41 +02:00
Thomas Lamprecht
ec5052600f js: fix some common typos found with codespell
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-15 10:44:43 +02:00
Thomas Lamprecht
9a25bf06b6 ui: storage/content: reference volid in confirm window and use new task description
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-11-22 13:27:34 +01:00
Wolfgang Link
5cdb27225f Add imagedestroy to SafeDestroy 2018-11-22 08:50:32 +01:00
Thomas Lamprecht
8cbc11a70c use TaskViewer & TaskProgress window 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
Fabian Grünbichler
707c28ce80 add showProgress to SafeDestroy
modeled after the mechanism used in window/Edit.js

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-09-07 11:38:20 +02:00
Dominik Csapak
1f8a29e804 add a params object to the safedestroy window
we sometimes want to give the api call a parameter,
with this, we don't have to encode it into the url
everytime ourselves, but just give a 'params' object

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-07 11:38:20 +02:00
Emmanuel Kasper
beba93b147 Fix SafeDestroy when entering a numeric resource ID
In a previous commit, the inputField of SafeDestroy.js was converted
from a numberfield to a textfield to allow ceph pools names to be
entered.
This means the type of 'value' changed from number to string and
the strong equal test === was failing against a numeric id.
To solve this, we now always stringify the resource id before comparing.
2017-06-19 09:23:55 +02:00
Emmanuel Kasper
2125c18a23 Adapt SafeDestroy component to be able to delete Ceph Pools 2017-06-13 05:40:08 +02:00
Dominik Csapak
22f2f9d6c0 jslint: remove trailing commas
before ECMA5 trailing commas in arrays and objects
are forbidden

in jslint this is an error and cannot be deactivated

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-29 17:06:34 +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
Dietmar Maurer
763ec2ecf8 SafeDestroy: remove viewModel - it not flexible enough 2016-04-05 11:09:42 +02:00
Dietmar Maurer
5128596e98 remove unnecessary reference to confirmField 2016-04-05 06:34:13 +02:00
Emmanuel Kasper
7b572e6d2f SafeDestroy.js: allow to submit the form with Enter key
also set focus on the confirm field of the Destroy Window on display
2016-04-05 06:32:23 +02:00
Dietmar Maurer
16152937f8 reduce translation overhead 2016-04-04 16:59:52 +02:00
Dietmar Maurer
7667066d54 SafeDestroy: remove dead code
The cancel button was already removed.
2016-03-30 09:19:06 +02:00
Dietmar Maurer
bcecf28019 SafeDestroy.js: use modern ExtJS features
We now use the class config system, a View Model and a View Controller.
2016-03-30 09:07:32 +02:00
Dietmar Maurer
e1ffa9fcdc SafeDestroy.js: factor out common code 2016-03-29 10:27:40 +02:00
Dietmar Maurer
fd8a2eea60 cleanup: run emacs indent-region on SafeDestroy.js 2016-03-29 09:58:04 +02:00
Emmanuel Kasper
32f469f383 requires manual entering VM id before enabling the delete Button for VMs
suggested by a user in https://bugzilla.proxmox.com/show_bug.cgi?id=360#c7
similar to the way github handles the deleting of a repository

fixes: #360
2016-03-21 10:45:49 +01:00