mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Example use for preAction
This commit is contained in:
parent
13b704081d
commit
3f848a4556
@ -377,6 +377,13 @@
|
||||
},
|
||||
resetPassword: {
|
||||
label: 'Reset password',
|
||||
preAction: function(args) {
|
||||
cloudStack.dialog.notice({
|
||||
message: 'You cannot reset your password.'
|
||||
});
|
||||
|
||||
return false;
|
||||
},
|
||||
action: function(args) {
|
||||
args.response.success({});
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user