osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GitHub] brooklyn-ui pull request #108: improve logic and ui for inferring bundle and...


Github user ahgittin commented on a diff in the pull request:

    https://github.com/apache/brooklyn-ui/pull/108#discussion_r232973583
  
    --- Diff: ui-modules/blueprint-composer/app/components/catalog-saver/catalog-saver.directive.js ---
    @@ -223,3 +228,7 @@ function templateCache($templateCache) {
         $templateCache.put(TEMPLATE_URL, template);
         $templateCache.put(TEMPLATE_MODAL_URL, modalTemplate);
     }
    +
    +var bundlize = (input) => input && input.split(/[^a-zA-Z0-9]+/).filter(x => x).join('-').toLowerCase();
    --- End diff --
    
    i didn't like `bundlizeProvider()(textToBundlize)`, but `$filter('bundlize')(text)` is not bad, changed


---