File tree Expand file tree Collapse file tree 5 files changed +5
-9
lines changed
Expand file tree Collapse file tree 5 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ var numeral = require('numeral');
33
44var CollectionStatsView = AmpersandView . extend ( {
55 bindings : {
6- 'model._id ' : {
6+ 'model.name ' : {
77 hook : 'name'
88 } ,
99 document_count : {
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ module.exports = AmpersandView.extend({
5050 } ,
5151 template : require ( './type-list-item.jade' ) ,
5252 typeClicked : function ( ) {
53- if ( this . parent . parent . minichartModel . cid !== this . model . cid ) {
53+ if ( this . parent . parent . minichartModel . modelType !== this . model . modelType ) {
5454 this . parent . parent . switchView ( this . model ) ;
5555 }
5656 }
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ module.exports = AmpersandView.extend({
3232 'click .splitter' : 'onSplitterClick' ,
3333 } ,
3434 bindings : {
35- 'model._id ' : {
35+ 'model.name ' : {
3636 hook : 'name'
3737 } ,
3838 'sidebarWidth' : {
Original file line number Diff line number Diff line change @@ -27,9 +27,7 @@ module.exports = AmpersandView.extend({
2727 this . renderWithTemplate ( this ) ;
2828
2929 // unique values get a div-based minichart
30- if ( ( this . model . _id === 'String' ) &&
31- ( this . model . unique === this . model . count ) ) {
32-
30+ if ( this . model . unique === this . model . count ) {
3331 this . viewOptions . renderMode = 'html' ;
3432 this . viewOptions . className = 'minichart unique' ;
3533 this . subview = new UniqueMinichartView ( this . viewOptions ) ;
Original file line number Diff line number Diff line change @@ -12,11 +12,9 @@ module.exports = VizView.extend({
1212 template : require ( './unique.jade' ) ,
1313 derived : {
1414 randomValues : {
15- deps : [ 'orderedValues' ] ,
1615 cache : false ,
1716 fn : function ( ) {
18- // @hack for demo: show values across all types
19- return _ ( this . model . collection . parent . values . sample ( 15 ) )
17+ return _ ( this . model . values . sample ( 15 ) )
2018 . map ( function ( x ) {
2119 return x . value ;
2220 } )
You can’t perform that action at this time.
0 commit comments