You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
potato-launcher/src/js/stores/tags.js

26 lines
521 B

/**
* Store for tags
*
* @author Björn Hase
* @license hhttps://www.gnu.org/licenses/gpl-3.0.en.html GPL-3
* @link https://gitea.node001.net/HerrHase/potato-launcher.git
*
*/
import TagsDatabase from './../database/tags.js'
import observable from '@riotjs/observable'
export default observable({
/**
* get all tags
*
*/
get() {
const tagsDatabase = new TagsDatabase()
tagsDatabase.find().then((data) => {
this.trigger('ready', data)
})
}
})