Thomas Lamprecht
8886099fa5
StdRemoveButton: enable by default if no selection model
...
As in that case we normally want it to be enabled from the start, as
no selection model is there and so we cannot wait until one item is
selected until we enable it.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-18 19:26:22 +02:00
Thomas Lamprecht
842203fd0a
StdRemoveButton: getUrl: fallback to baseurl if no selModel is set
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-18 19:16:25 +02:00
Thomas Lamprecht
791f4ae3fb
button: don't auto set selection model if explicitly set to false
...
while one could use `selModel: null` to achieve this it feels really
weird that `selModel: false` could result in a selection model being
auto searched and set
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-18 19:16:25 +02:00
Thomas Lamprecht
16c0a0b570
Ext.Msg: switch from depreacated msg to message property
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-11-26 12:58:50 +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
d0af658440
followup code cleanup
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-07-25 13:22:42 +02:00
Dominic Jäger
2280ae09a9
Fix #582 : Add delay to button
...
The StdRemoveButton can now pass a delay parameter to the API.
It is set undefined as default so that users of the button
can set the parameter themselves.
Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
2019-07-25 13:20:12 +02:00
Dominik Csapak
4c2b424203
fix var assignments
...
only declare 'grid' once
2018-01-11 14:48:13 +01:00
Dominik Csapak
a147a8cbb7
explicit set button focus respecting the 'dangerous' option
...
port commit
4dc6bd326a829d5bf708c4a33722d5a8c6304f9c
from pve-manager
2018-01-11 14:48:13 +01:00
Dominik Csapak
3c93b430cd
add baseurl of stdremovebutton to config
...
so that we can bind this
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-04-05 09:42:22 +02:00
Dietmar Maurer
6a42adffda
button/Button.js: do not sreach for selection model if selModel === null
...
For Buttons which needs to trigger when nothing is selected.
2017-04-01 17:54:40 +02:00
Dietmar Maurer
81244aa1fe
button/Button.js: make it work with named scopes
...
and add ability to bind to underlying grid automatically if no selModel
specified.
2017-03-28 13:07:10 +02:00
Dietmar Maurer
3c08d49aa1
proxmoxStdRemoveButton: fixup getUrl method - add 'me'
2017-03-27 11:04:27 +02:00
Dietmar Maurer
375c055b9a
proxmoxStdRemoveButton: add getUrl method
2017-03-20 07:31:05 +01:00
Dietmar Maurer
a1d5d0649e
new widget: proxmoxStdRemoveButton
2017-03-20 07:23:16 +01:00
Dietmar Maurer
d1661fde3f
button/Button.js: imported from pve-manager
2017-02-25 14:35:29 +01:00