mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Added commands into metadata.
The json_metadata command has been modified to accept some new options and return the commands metadata. The API.txt has been updated as well. The UI has been modified to use commands metadata instead of methods metadata. Ticket #388
This commit is contained in:
@@ -144,12 +144,12 @@ IPA.host.entity = function(spec) {
|
||||
fields: [
|
||||
{
|
||||
name: 'ip_address',
|
||||
metadata: IPA.get_method_option('host_add', 'ip_address')
|
||||
metadata: IPA.get_command_option('host_add', 'ip_address')
|
||||
},
|
||||
{
|
||||
type: 'force_host_add_checkbox',
|
||||
name: 'force',
|
||||
metadata: IPA.get_method_option('host_add', 'force')
|
||||
metadata: IPA.get_command_option('host_add', 'force')
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -392,7 +392,7 @@ IPA.host_deleter_dialog = function(spec) {
|
||||
|
||||
that.deleter_dialog_create();
|
||||
|
||||
var metadata = IPA.get_method_option('host_del', 'updatedns');
|
||||
var metadata = IPA.get_command_option('host_del', 'updatedns');
|
||||
|
||||
that.updatedns = $('<input/>', {
|
||||
type: 'checkbox',
|
||||
@@ -492,7 +492,7 @@ IPA.utc_date_column_format = function(value){
|
||||
|
||||
|
||||
IPA.force_host_add_checkbox_widget = function(spec) {
|
||||
var metadata = IPA.get_method_option('host_add', spec.name);
|
||||
var metadata = IPA.get_command_option('host_add', spec.name);
|
||||
spec.label = metadata.label;
|
||||
spec.tooltip = metadata.doc;
|
||||
return IPA.checkbox_widget(spec);
|
||||
|
||||
Reference in New Issue
Block a user