diff --git a/app/components/BoardPostCard.vue b/app/components/BoardPostCard.vue index a79a535..4e32218 100644 --- a/app/components/BoardPostCard.vue +++ b/app/components/BoardPostCard.vue @@ -88,19 +88,7 @@ defineEmits(['edit', 'delete', 'confirm-delete', 'cancel-delete']) const { slackUrl } = useBoardChannels() -const capitalizeAvatar = (str) => { - if (str.toLowerCase() === 'wtf') return 'WTF' - return str - .split('-') - .map((w) => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase()) - .join('-') -} - -const authorAvatar = computed(() => { - const a = props.post.author?.avatar - if (!a) return null - return `/ghosties/Ghost-${capitalizeAvatar(a)}.png` -}) +const authorAvatar = computed(() => ghostieImagePath(props.post.author?.avatar)) const slackHandle = computed(() => props.post.author?.board?.slackHandle || '') diff --git a/app/components/SignupFlowOverlay.vue b/app/components/SignupFlowOverlay.vue index 10fe663..73f8c09 100644 --- a/app/components/SignupFlowOverlay.vue +++ b/app/components/SignupFlowOverlay.vue @@ -33,8 +33,7 @@
- Check {{ summary?.email }} for a sign-in link to finish setting up - your account. The link expires in 15 minutes. + {{ successMessage || `Check ${summary?.email} for a sign-in link to finish setting up your account. The link expires in 15 minutes.` }}
@@ -62,6 +61,7 @@ const props = defineProps({ summary: { type: Object, default: null }, errorMessage: { type: String, default: "" }, dashboardHref: { type: String, default: "/welcome" }, + successMessage: { type: String, default: "" }, }); defineEmits(["close"]); diff --git a/app/components/TopStrip.vue b/app/components/TopStrip.vue index 37a8aec..b00915e 100644 --- a/app/components/TopStrip.vue +++ b/app/components/TopStrip.vue @@ -29,7 +29,7 @@