Skip to content

AskModal

View source on GitHub

A confirmation modal for restoring a plant and its weight to the inventory. *

Props

NameTypeRequiredDescription
plantNamestringyesThe name of the plant to be restored.
plantPartstringyesThe part of the plant to be restored.
distillationWeightnumberyesThe weight of the plant to be restored.

Emits

  • close-modal
  • handle-yes

Exposed Methods

handleYes()

Emits the handle-yes event to confirm plant restoration.

closeModal()

Emits the close-modal event to close the modal without restoration.