AngularJS - Remove UI-Utils library
[civicrm-core.git] / ang / crmUi.ang.php
index cc7c2149b6d9d2b7805b98917260c1a5ec37a830..0cdb8d9f5ad920b7f3eeb017d367552f49e114d1 100644 (file)
@@ -1,20 +1,17 @@
 <?php
 // This file declares an Angular module which can be autoloaded
-// in CiviCRM. See also:
-// http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_angularModules
-
-$isDebug = Civi::settings()->get('debug_enabled');
+$isPretty = \Civi::settings()->get('debug_enabled') && !defined('CIVICRM_KARMA');
 
 return [
   'ext' => 'civicrm',
   'js' => ['ang/crmUi.js'],
   'partials' => ['ang/crmUi'],
+  'css' => ['ang/crmUI.css'],
   'requires' => array_merge(
     [
       'crmResource',
-      'ui.utils',
     ],
     // Only require the +10kb if we're likely to need it.
-    $isDebug ? ['jsonFormatter'] : []
+    $isPretty ? ['jsonFormatter'] : []
   ),
 ];