1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-30 15:58:16 +09:00

refactor(client): Export default reaction setting and use it

This commit is contained in:
syuilo 2020-05-06 09:40:07 +09:00
parent d57d55a226
commit 729116c9e5
2 changed files with 3 additions and 2 deletions

View File

@ -23,6 +23,7 @@ import MkButton from '../../components/ui/button.vue';
import MkReactionPicker from '../../components/reaction-picker.vue';
import i18n from '../../i18n';
import { emojiRegexWithCustom } from '../../../misc/emoji-regex';
import { defaultSettings } from '../../store';
export default Vue.extend({
i18n,
@ -70,7 +71,7 @@ export default Vue.extend({
},
setDefault() {
this.reactions = '👍❤😆🤔😮🎉💢😥😇🍮';
this.reactions = defaultSettings.reactions;
},
async chooseEmoji(ev) {

View File

@ -3,7 +3,7 @@ import createPersistedState from 'vuex-persistedstate';
import * as nestedProperty from 'nested-property';
import { apiUrl } from './config';
const defaultSettings = {
export const defaultSettings = {
tutorial: 0,
keepCw: false,
showFullAcct: false,