How to use the ember-notify.useBootstrap function in ember-notify

To help you get started, we’ve selected a few ember-notify examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github phanime / phanime / front / app / controllers / anime / index.js View on Github external
save_changes: function(anime) {

			Notify.useBootstrap();

			var onSuccess = function(anime) {
				var msg = anime.get('title') + " was successfully saved.";
				console.log(msg);
				Notify.success(msg);
			};

			var onFailure = function(anime) {
				var msg = "Something went wrong, " + anime.get('title') + " was not saved.";
				console.log(msg);
				Notify.warning(msg);
			};

			anime.save().then(onSuccess, onFailure);
		},
		add_episode: function() {