From 511452ec41d7427fd284233ac39a50072d0ece55 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Tue, 16 Apr 2013 14:29:41 +0200 Subject: Replace formatter creation with definition in specs https://fedorahosted.org/freeipa/ticket/3235 --- install/ui/src/freeipa/hbactest.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'install/ui/src/freeipa/hbactest.js') diff --git a/install/ui/src/freeipa/hbactest.js b/install/ui/src/freeipa/hbactest.js index 3b079605..35a5c3a1 100644 --- a/install/ui/src/freeipa/hbactest.js +++ b/install/ui/src/freeipa/hbactest.js @@ -50,9 +50,10 @@ IPA.hbac.test_entity = function(spec) { { name: 'nsaccountlock', label: '@i18n:status.label', - formatter: IPA.boolean_status_formatter({ + formatter: { + $type: 'boolean_status', invert_value: true - }) + } } ] }). @@ -69,7 +70,7 @@ IPA.hbac.test_entity = function(spec) { { name: 'has_keytab', label: '@i18n:objects.host.enrolled', - formatter: IPA.boolean_formatter() + formatter: 'boolean' } ] }). @@ -98,7 +99,7 @@ IPA.hbac.test_entity = function(spec) { { name: 'ipaenabledflag', label: '@i18n:status.label', - formatter: IPA.boolean_status_formatter() + formatter: 'boolean_status' }, 'description' ] @@ -116,12 +117,12 @@ IPA.hbac.test_entity = function(spec) { { name: 'matched', label: '@i18n:objects.hbactest.matched', - formatter: IPA.boolean_formatter() + formatter: 'boolean' }, { name: 'ipaenabledflag', label: '@i18n:status.label', - formatter: IPA.boolean_status_formatter() + formatter: 'boolean_status' }, 'description' ] -- cgit