Skip to content

Commit

Permalink
uuidじゃなくてuidを表示するように
Browse files Browse the repository at this point in the history
  • Loading branch information
mehm8128 committed Dec 27, 2023
1 parent e9ae2a5 commit d50e32d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/Settings/StampTab/StampItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<p>:{{ stamp.name }}:</p>
<p
v-if="showCreator"
:title="`@${stamp.creatorId}`"
:title="`@${creatorName}`"
:class="$style.creator"
>
@{{ stamp.creatorId }}
@{{ creatorName }}
</p>
</div>
<button :class="$style.dotsButton" @click="onDotsClick">
Expand All @@ -32,6 +32,7 @@ import { buildFilePath } from '/@/lib/apis'
import useContextMenu from '/@/composables/useContextMenu'
import StampContextMenu from './StampContextMenu.vue'
import AIcon from '/@/components/UI/AIcon.vue'
import { useUsersStore } from '/@/store/entities/users'
const props = withDefaults(
defineProps<{
Expand All @@ -43,6 +44,11 @@ const props = withDefaults(
}
)
const { usersMap } = useUsersStore()
const creatorName = computed(
() => usersMap.value.get(props.stamp.creatorId)?.name ?? 'unknown'
)
const url = computed(() => buildFilePath(props.stamp.fileId))
const {
Expand Down

0 comments on commit d50e32d

Please sign in to comment.