How to use the evergreen-ui.toaster.notify function in evergreen-ui

To help you get started, we’ve selected a few evergreen-ui 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 owtf / owtf / owtf / webapp / src / containers / WorkersPage / index.js View on Github external
toaster.warning("All Workers are successfully paused :)");
      } else if (action === "resume") {
        toaster.success("All Workers are successfully resumed :)");
      }
    } else {
      // If action is applied individually
      if (action === "pause") {
        toaster.warning("Worker " + worker_id + " is successfully paused :)");
      } else if (action === "resume") {
        toaster.success("Worker " + worker_id + " is successfully resumed :)");
      } else if (action === "abort") {
        toaster.notify("Worker " + worker_id + " is successfully aborted :)");
      } else if (action === "delete") {
        toaster.notify("Worker " + worker_id + " is successfully deleted :)");
      } else if (action === "create") {
        toaster.notify("Worker is successfully added :)");
      }
    }
  }
github owtf / owtf / owtf / webapp / src / containers / WorklistPage / index.js View on Github external
setTimeout(() => {
      if (this.props.deleteError === false) {
        toaster.notify("Work is successfully deleted :)");
      } else {
        toaster.danger("Server replied: " + this.props.deleteError);
      }
    }, 500);
  }
github rakibtg / Docker-Elementary / src / screens / ContainerScreen.js View on Github external
                    onSelect={() => toaster.notify('Move')}
                    icon='ban-circle'
github owtf / owtf / owtf / webapp / src / containers / WorklistPage / index.js View on Github external
setTimeout(() => {
      if (this.props.deleteError === false) {
        toaster.notify("All Works are successfully deleted :)");
      } else {
        toaster.danger("Server replied: " + this.props.deleteError);
      }
    }, 500);
  }