Load stickers from config file.

This commit is contained in:
N-Pex 2021-09-25 14:35:38 +02:00
parent 3bd15adc29
commit 46a4268245
7 changed files with 78 additions and 38 deletions

View file

@ -33,6 +33,8 @@
</template>
<script>
import stickers from "./plugins/stickers";
export default {
name: "App",
data() {
@ -68,6 +70,14 @@ export default {
} else {
this.loading = false;
}
this.$config.promise.then(this.onConfigLoaded);
},
methods: {
onConfigLoaded(config) {
if (config.shortCodeStickers) {
stickers.loadStickersFromConfig(config);
}
},
},
computed: {
currentUser() {