|
@@ -2506,7 +2506,6 @@ class Editor extends Component {
|
|
endChanges();
|
|
endChanges();
|
|
onChange();
|
|
onChange();
|
|
}},
|
|
}},
|
|
- { label : '${getSheetProps(sheet).view == null ? "Create View" : "Edit View"}', click : function() { createView(getSheetProps(sheet).view != null ? null : sheet, getSheetProps(sheet).view != null ? sheet : null , index+1); } },
|
|
|
|
{ label : "Categories", menu: categoriesMenu(getSheetProps(sheet).categories, function(cats) {
|
|
{ label : "Categories", menu: categoriesMenu(getSheetProps(sheet).categories, function(cats) {
|
|
beginChanges();
|
|
beginChanges();
|
|
var props = getSheetProps(sheet);
|
|
var props = getSheetProps(sheet);
|
|
@@ -2519,6 +2518,12 @@ class Editor extends Component {
|
|
|
|
|
|
]);
|
|
]);
|
|
}
|
|
}
|
|
|
|
+ if ( sheet.props.dataFiles == null ) {
|
|
|
|
+ content.push({
|
|
|
|
+ label : '${getSheetProps(sheet).view == null ? "Create View" : "Edit View"}',
|
|
|
|
+ click : function() { createView(getSheetProps(sheet).view != null ? null : sheet, getSheetProps(sheet).view != null ? sheet : null , index+1); }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
if( sheet.props.dataFiles == null )
|
|
if( sheet.props.dataFiles == null )
|
|
content = content.concat([
|
|
content = content.concat([
|
|
{ label : "Add Index", checked : sheet.props.hasIndex, click : function() {
|
|
{ label : "Add Index", checked : sheet.props.hasIndex, click : function() {
|