Class: Dashboard

frontend~Dashboard(props)

Admin dashboard component. Performs all function required for the admin, and links all admin related components together through callbacks.

Constructor

new Dashboard(props)

Initializes state and binds methods
Parameters:
Name Type Description
props Array.<any> Must contain a user name and password
Source:

Extends

  • {@link

Methods

componentDidMount()

Triggers a elegent scroll animation to show the user that there is horizontal scroll within pannel sections
Source:

deleteDrink()

Callback to query database to delete a drink.
Source:

deleteIngredient()

Callback to query database to delete an ingredient.
Source:

orderIngredient()

Callback to query database to order an ingredient.
Source:

render()

Renders out responsive pannels containing lists of drinks and ingredients based on specific criteria, as well as hidden detailed views.
Source:

updateRefresh(firstTime)

Updates admin dashboard data by querying the database
Parameters:
Name Type Default Description
firstTime boolean false Flag to reset state. Defaults to false
Source: