Load stickers from config file.
This commit is contained in:
parent
3bd15adc29
commit
46a4268245
7 changed files with 78 additions and 38 deletions
10
src/App.vue
10
src/App.vue
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue