Created
August 8, 2018 02:52
-
-
Save spalger/81097177c88dee142700fab25de88932 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/core_plugins/testbed/public/testbed.html b/src/core_plugins/testbed/public/testbed.html | |
index 52455beb02..16b7c02930 100644 | |
--- a/src/core_plugins/testbed/public/testbed.html | |
+++ b/src/core_plugins/testbed/public/testbed.html | |
@@ -6,6 +6,8 @@ | |
<!-- All markup within the CONTENT section below can be deleted and replaced with whatever markup you need to demonstrate your functionality. Nothing need be preserved. --> | |
<!-- CONTENT START --> | |
+ <button ng-click="testbed.toastNotifications.addWarning('foo bar')">add warning</button> | |
+ | |
<!-- CONTENT END --> | |
</div> | |
diff --git a/src/core_plugins/testbed/public/testbed.js b/src/core_plugins/testbed/public/testbed.js | |
index 36109efaae..9296ec9198 100644 | |
--- a/src/core_plugins/testbed/public/testbed.js | |
+++ b/src/core_plugins/testbed/public/testbed.js | |
@@ -20,12 +20,12 @@ | |
import uiRoutes from 'ui/routes'; | |
import template from './testbed.html'; | |
import './testbed.less'; | |
+import { toastNotifications } from 'ui/notify'; | |
uiRoutes.when('/testbed', { | |
template: template, | |
controllerAs: 'testbed', | |
controller: class TestbedController { | |
- constructor() { | |
- } | |
+ toastNotifications = toastNotifications | |
} | |
-}); | |
\ No newline at end of file | |
+}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment