Class

ProjectMenu

ProjectMenu(props) → {React.ReactElement}

Constructor

# new ProjectMenu(props) → {React.ReactElement}

Overview

The middle part of the Header that allows user to perform actions on selected project such as:
  • changing settings
  • renaming
  • downloading
  • deleting
Parameters:
Name Type Description
props Object
currentProject number

The id of current project.

onProjectClick function

Callback fired when one of the projects from the list was clicked on.

onDialogOpen function

Callback fired when one of the dialogs requests to be opened.

onSaveProject function

Callback fired when user requests to save project.

onSnackbarOpen function

Callback fired when the component requests to display an error.

projects Array.<Object>

The list of all projects.

serverBase string

The host and port in the URL of an API call.

View Source Header/Elements/ProjectMenu.js, line 50

React.ReactElement