Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Unable to change group names. #27

Merged
merged 2 commits into from
Jun 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v1.1.3 (16/06/22)

- Fix: Unable to change group names #25

v1.1.0 (24/04/22)

- Fix: Missing emoji on Mac. See: #20
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue3-emoji-picker",
"version": "1.1.1",
"version": "1.1.3",
"license": "MIT",
"author": "delowardev",
"repository": {
Expand Down
6 changes: 3 additions & 3 deletions src/components/Body.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class="v3-group"
>
<h5 v-if="hasGroupNames" :class="isSticky ? `v3-sticky` : ``">
{{ GROUP_NAMES[key] }}
{{ groupNames[key] }}
</h5>
<div class="v3-emojis">
<button
Expand Down Expand Up @@ -79,7 +79,7 @@ export default defineComponent({
const _this = getCurrentInstance()
const hasGroupNames = computed(() => !state.options.hideGroupNames)
const isSticky = computed(() => !state.options.disableStickyGroupNames)
const groupNames = computed(() => state.options.groupNames)
const groupNames = state.options.groupNames

const platform = isMac() ? 'is-mac' : ''

Expand Down Expand Up @@ -125,8 +125,8 @@ export default defineComponent({
EMOJI_NAME_KEY,
hasGroupNames,
isSticky,
groupNames,
platform,
groupNames,
}
},
})
Expand Down
1 change: 1 addition & 0 deletions src/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const defaultOptions: Record<string, any> = {
hideGroupNames: false,
staticTexts: {},
disabledGroups: [],
groupNames: {},
}

export default function Store(): Store {
Expand Down