ausocean / openfish

OpenFish is an open-source system written in GoLang for classifying marine species. Tasks involve importing video or image data, classifying and annotating data (both manually and automatically), searching, and more. It is expected that OpenFish will use utilize computer vision and machine learning techniques.
https://ausocean.github.io/openfish/
Other
6 stars 0 forks source link

Add confirm dialog component #112

Closed scott97 closed 6 months ago

scott97 commented 6 months ago

Adds a dialog asking for user confirmation before performing an action.

Usage

<confirm-dialog>Your message here</confirm-dialog>
const confirmDialog = document.querySelector("confirm-dialog") as ConfirmDialog

// show() displays the dialog, and takes a callback as an argument, that will
// fire if the user confirms.
confirmDialog.show(()=>console.log('user confirmed'))

Screenshot

image