Revision 643fe7e3 snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_create_view.js

b/snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_create_view.js
662 662
        },
663 663
        
664 664
        update_flavors_data: function() {
665
            this.flavors = storage.flavors.active();
665
            this.flavors = this.get_active_flavors();
666 666
            this.flavors_data = storage.flavors.get_data(this.flavors);
667 667
            
668 668
            var self = this;
669 669
            var set = false;
670 670
            
671 671
            // FIXME: validate current flavor
672
            
673 672
            if (!this.current_flavor) {
674 673
                _.each(this.valid_predefined, function(key) {
675 674
                    var flv = self.predefined_flavors[key];
......
930 929
        },
931 930
        
932 931
        get_active_flavors: function() {
933
            return storage.flavors.active();
932
            return storage.flavors.active().filter(function(flv) {
933
	        return flv.get("SNF:allow_create")
934
	    });
934 935
        },
935 936

  
936 937
        get_valid_flavors: function() {

Also available in: Unified diff