mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-09-03 20:52:56 -05:00
Need force option in DNS zone adder dialog
When adding a new DNS zone in the WebUI, IPA server will verify whether the nameserver is in DNS. Sometimes it is necessary to skip the verification. This patch adds a --force option already available in CLI which can skip this the verification. https://fedorahosted.org/freeipa/ticket/1105
This commit is contained in:
committed by
Endi Sukma Dewata
parent
d9c1761234
commit
bc6f9accd9
+10
-2
@@ -21,7 +21,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js */
|
||||
/* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js, widget.js */
|
||||
|
||||
/* DNS */
|
||||
IPA.entity_factories.dnszone = function() {
|
||||
@@ -30,7 +30,7 @@ IPA.entity_factories.dnszone = function() {
|
||||
entity('dnszone').
|
||||
search_facet({
|
||||
columns:['idnsname'],
|
||||
add_fields: ['idnsname','idnssoamname','idnssoarname']
|
||||
add_fields: ['idnsname','idnssoamname','idnssoarname', {factory:IPA.force_dnszone_add_checkbox_widget}]
|
||||
}).
|
||||
details_facet({sections:[{
|
||||
name:'identity',
|
||||
@@ -57,6 +57,14 @@ IPA.entity_factories.dnszone = function() {
|
||||
build();
|
||||
};
|
||||
|
||||
IPA.force_dnszone_add_checkbox_widget = function (spec){
|
||||
var param_info = IPA.get_method_param('dnszone_add', 'force');
|
||||
spec.name = 'force';
|
||||
spec.label = param_info.label;
|
||||
spec.tooltip = param_info.doc;
|
||||
spec.undo = false;
|
||||
return IPA.checkbox_widget(spec);
|
||||
};
|
||||
|
||||
IPA.records_facet = function (spec){
|
||||
|
||||
|
||||
@@ -528,7 +528,7 @@
|
||||
],
|
||||
"hint": null,
|
||||
"include": null,
|
||||
"label": "<force>",
|
||||
"label": "Force",
|
||||
"multivalue": false,
|
||||
"name": "force",
|
||||
"primary_key": false,
|
||||
@@ -634,7 +634,7 @@
|
||||
"flags": [],
|
||||
"hint": null,
|
||||
"include": null,
|
||||
"label": "<force>",
|
||||
"label": "Force",
|
||||
"multivalue": false,
|
||||
"name": "force",
|
||||
"primary_key": false,
|
||||
|
||||
Reference in New Issue
Block a user