Skip to content

Commit 2add56a

Browse files
committed
fix(ui): hide __basic__
If we’re in an array of basic values
1 parent 8c84d46 commit 2add56a

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

scout-ui/src/field-list/index.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,19 @@ var debug = require('debug')('scout-ui:field-list');
88

99
var BasicFieldView = View.extend({
1010
bindings: {
11-
'model._id': {
12-
hook: 'name'
13-
}
11+
'model._id': [
12+
{
13+
hook: 'name'
14+
},
15+
{
16+
hook: 'name',
17+
type: function(el) {
18+
if (this.model._id === '__basic__') {
19+
el.classList.add('hidden');
20+
}
21+
}
22+
}
23+
]
1424
},
1525
template: require('./basic-field.jade'),
1626
subviews: {

0 commit comments

Comments
 (0)