mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
refactor(client): Export default reaction setting and use it
This commit is contained in:
parent
559a946a92
commit
3c581e5b09
2 changed files with 3 additions and 2 deletions
|
@ -23,6 +23,7 @@ import MkButton from '../../components/ui/button.vue';
|
||||||
import MkReactionPicker from '../../components/reaction-picker.vue';
|
import MkReactionPicker from '../../components/reaction-picker.vue';
|
||||||
import i18n from '../../i18n';
|
import i18n from '../../i18n';
|
||||||
import { emojiRegexWithCustom } from '../../../misc/emoji-regex';
|
import { emojiRegexWithCustom } from '../../../misc/emoji-regex';
|
||||||
|
import { defaultSettings } from '../../store';
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
i18n,
|
i18n,
|
||||||
|
@ -70,7 +71,7 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
setDefault() {
|
setDefault() {
|
||||||
this.reactions = '👍❤😆🤔😮🎉💢😥😇🍮';
|
this.reactions = defaultSettings.reactions;
|
||||||
},
|
},
|
||||||
|
|
||||||
async chooseEmoji(ev) {
|
async chooseEmoji(ev) {
|
||||||
|
|
|
@ -3,7 +3,7 @@ import createPersistedState from 'vuex-persistedstate';
|
||||||
import * as nestedProperty from 'nested-property';
|
import * as nestedProperty from 'nested-property';
|
||||||
import { apiUrl } from './config';
|
import { apiUrl } from './config';
|
||||||
|
|
||||||
const defaultSettings = {
|
export const defaultSettings = {
|
||||||
tutorial: 0,
|
tutorial: 0,
|
||||||
keepCw: false,
|
keepCw: false,
|
||||||
showFullAcct: false,
|
showFullAcct: false,
|
||||||
|
|
Loading…
Reference in a new issue