Add info notifications for adding visualizations to the dashboard (#10352)

Backports PR #10310

**Commit 1:**
Add info notifications for adding visualizations to the dashboard

* Original sha: 98237e0af2
* Authored by Stacey Gammon <gammon@elastic.co> on 2017-02-13T15:27:07Z
This commit is contained in:
jasper 2017-02-15 10:37:12 -05:00 committed by Stacey Gammon
parent 04a7dae14c
commit 56cff215f6

View file

@ -119,11 +119,13 @@ app.directive('dashboardApp', function (Notifier, courier, AppState, timefilter,
$scope.addVis = function (hit) {
pendingVisCount++;
dashboardState.addNewPanel(hit.id, 'visualization');
notify.info(`Visualization successfully added to your dashbard`);
};
$scope.addSearch = function (hit) {
pendingVisCount++;
dashboardState.addNewPanel(hit.id, 'search');
notify.info(`Search successfully added to your dashbard`);
};
$scope.showEditHelpText = () => {