This commit is contained in:
Henry Jameson 2025-11-25 19:35:52 +02:00
commit 452a522fa4
5 changed files with 32 additions and 9 deletions

View file

@ -23,6 +23,23 @@ const VersionTab = {
return pleromaFeCommitUrl + this.frontendVersion
},
...SharedComputedObject(),
},
methods: {
clearAssetCache () {
this.clearCache(cacheKey)
},
clearEmojiCache () {
this.clearCache(emojiCacheKey)
},
clearCache (key) {
clearCache(key)
.then(() => {
this.$store.dispatch('settingsSaved', { success: true })
})
.catch(error => {
this.$store.dispatch('settingsSaved', { error })
})
}
}
}