Implement preAction handler for list view/detail view actions. If the
function returns false, then do not proceed further on the action. It
is specified like this:
actions: {
...
preAction: function(args) {
cloudStack.dialog.notice({ message: "You can't do that!" });
return false;
},
action: function(args) { ... },
...
}
It currently passes in the standard args.context that you would get
with a standard action; note that this currently does not support
async server calls, so try to use current state data as much as
possible.
-Add list view for users to accept/decline invitations, found under
Projects->Invitations drop-down
-Allow project admin to remove pending invitations
-If invites are required, show pop-up after adding user, indicating
that user will be added after accpting invitation
-Hide all invitation-related UI elements if
projects.invite.required == false
-Make security groups a detail view (like virtual router details), as
there is only one security group provider per zone.
-Add a view all security groups button, to provide an alternate way to
view security groups, outside the network section
-Always unbind event if object isn't visible
-Use widget-specific refresh event for multi-edit actions, to prevent
other widgets from being refreshed unecessarily.
-In order to have the 'Apply' button always visible when editing data,
only put the main fields (i.e., everything except action bar and
apply button) into a scrollable container.
-Move apply button to bottom of detail view pane
Show notice if no VMs are selected in port forwarding/load balancing
-- prevent server call from being performed and 'infinite list' from
being generated
Bug was caused by a 'cloudStack.fullRefresh' event being triggered on
a non-existent edit widget, for a non-existent project. I changed the
widget to only refresh if the current instance is visible (i.e., most
likely the user still has active data for it)
-Add label if only one section select option is present
-Fix for broken context variable for accounts, security groups list
view -- broke detail and list views
-Only show networks where source NAT is enabled
-If security groups are enabled, show security group section in place
of network section
-Make acquire IP form a confirm box, since no selection is required
anymore -- base network ID on selected network in list view
-List view switcher now selects the first item from the select list,
not the first in the section object; this prevents a filtered-out
section from being displayed by default