MeanBuildTimesController

MeanBuildTimesController

Stimulus controller that populates the mean build time per build context.

Constructor

new MeanBuildTimesController()

Source:

Extends

  • Controller

Methods

alertColor()

Source:

Return the color depending on the time in relation to the KPI

calculateMeanBuildTime()

Source:

connect()

Source:

Subscribe to the store.

disconnect()

Source:

Unsubscribe from the store

disconnect()

Source:

Unsubscribe from the store

loadingMeanBuildTimesValue()

Source:

Sets the text whilst waiting for the mean build time

reconnect()

Source:

Handles a repeated Turbo visit to the dashboard page.

removeAlertColors()

Source:

Remove all of the color classes for the mean build time

storeUpdated()

Source:

Triggered by the store whenever any store data changes. Controls whether the mean build time should be populated or display the loading indicator

updateMeanBuildTimesValue()

Source:

Sets the text for the mean build time and changes the color to match the KPI