Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashid Khan committed Sep 27, 2014
2 parents e03554e + 7cd0294 commit e7b11e6
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 85 deletions.
7 changes: 5 additions & 2 deletions src/kibana/apps/visualize/editor/agg.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
</span>

<!-- description -->
<span ng-if="!editorOpen && aggForm.$valid" class="vis-editor-agg-header-description">{{ describe() }}</span>
<span ng-if="!editorOpen && aggForm.$valid" class="vis-editor-agg-header-description">
{{ describe() }}
</span>

<!-- error -->
<span ng-if="!editorOpen && aggForm.$invalid" class="vis-editor-agg-header-description danger">
Expand Down Expand Up @@ -67,7 +69,8 @@
<!-- schema editors go here -->

<div class="form-group">
<label>Aggregation</label>
<label ng-if="$index < 1">Aggregation</label>
<label ng-if="$index >= 1">Sub Aggregation</label>
<select
name="agg"
class="form-control"
Expand Down
6 changes: 5 additions & 1 deletion src/kibana/apps/visualize/editor/agg.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ define(function (require) {
$scope.aggTypeOptions = aggTypes.byType[$scope.groupName];
$scope.editorOpen = $scope.agg.brandNew;

$scope.$watch('$index', function (i) {
$scope.$watchMulti([
'$index',
'group.length'
], function () {
var i = $scope.$index;
$scope.$first = i === 0;
$scope.$last = i === $scope.group.length - 1;
});
Expand Down
9 changes: 8 additions & 1 deletion src/kibana/apps/visualize/editor/agg_group.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@
ng-click="addForm.visible = !addForm.visible"
class="vis-editor-agg-wide-btn btn btn-xs btn-default" >

<i ng-if="!addForm.visible" class="fa fa-plus"></i>
<div ng-if="!addForm.visible">
<span ng-if="groupName === 'buckets' && (!group.length || group.length === 0)">
<i class="fa fa-plus"></i> Add Aggregation
</span>
<span ng-if="groupName === 'buckets' && group.length >= 1">
<i class="fa fa-code-fork"></i> Add Sub Aggregation
</span>
</div>
<span ng-if="addForm.visible">cancel</span>
</button>
</div>
Expand Down
5 changes: 5 additions & 0 deletions src/kibana/apps/visualize/editor/editor.less
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@
margin-right: @vis-editor-agg-editor-spacing;
}

&-subagg-icon {
.flex(0, 1, auto);
padding-right: @padding-base-vertical;
}

&-title {
.flex(1, 1, auto);
.ellipsis();
Expand Down
2 changes: 1 addition & 1 deletion src/kibana/components/courier/saved_object/saved_object.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ define(function (require) {
// fetch the object from ES
return docSource.fetch()
.then(function applyESResp(resp) {

obj._source = _.cloneDeep(resp._source);

if (!resp.found) throw new errors.SavedObjectNotFound(type);
Expand Down
4 changes: 2 additions & 2 deletions src/kibana/components/vis_types/histogram.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ define(function (require) {
{
group: 'buckets',
name: 'group',
title: 'Color',
title: 'Split Bars',
min: 0,
max: 1
},
{
group: 'buckets',
name: 'split',
title: 'Splits',
title: 'Split Chart',
min: 0,
max: 1
}
Expand Down
4 changes: 2 additions & 2 deletions src/kibana/components/vis_types/line.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ define(function (require) {
{
group: 'buckets',
name: 'group',
title: 'Color',
title: 'Split Lines',
min: 0,
max: 1
},
{
group: 'buckets',
name: 'split',
title: 'Splits',
title: 'Split Chart',
min: 0,
max: 1
}
Expand Down
2 changes: 1 addition & 1 deletion src/kibana/components/vis_types/pie.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ define(function (require) {
group: 'buckets',
name: 'segment',
icon: 'fa fa-scissors',
title: 'Create/Split Slices',
title: 'Split Slices',
min: 0,
max: Infinity
},
Expand Down
1 change: 0 additions & 1 deletion src/kibana/components/vislib/vis.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ define(function (require) {
this.handler.error(error.message);
} else {
console.error(error.message);
throw error;
}
}
};
Expand Down
Binary file removed src/kibana/font/kibana.eot
Binary file not shown.
16 changes: 0 additions & 16 deletions src/kibana/font/kibana.svg

This file was deleted.

Binary file removed src/kibana/font/kibana.ttf
Binary file not shown.
Binary file removed src/kibana/font/kibana.woff
Binary file not shown.
57 changes: 0 additions & 57 deletions src/kibana/styles/icon_font.css

This file was deleted.

1 change: 0 additions & 1 deletion src/kibana/styles/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
@import "./_callout.less";

// font icons
@import "./icon_font.css";
@import "./_font_icons.less";

// FontAwesome fills for glyphicons in bootstrap components
Expand Down

0 comments on commit e7b11e6

Please sign in to comment.