Hid admin comment button when not in recruiter view
This commit is contained in:
@@ -17,9 +17,12 @@ import { Dot } from 'lucide-vue-next'
|
||||
import { ref } from 'vue'
|
||||
import MemberCard from '../members/MemberCard.vue'
|
||||
|
||||
const props = defineProps<{
|
||||
const props = withDefaults(defineProps<{
|
||||
messages: CommentRow[]
|
||||
}>()
|
||||
adminMode?: boolean
|
||||
}>(), {
|
||||
adminMode: false,
|
||||
})
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'post', text: string): void
|
||||
@@ -60,7 +63,7 @@ function onSubmit(values: { text: string }, { resetForm }: { resetForm: () => vo
|
||||
|
||||
<!-- Button below, right-aligned -->
|
||||
<div class="mt-2 flex justify-end gap-2">
|
||||
<Button type="submit" @click="submitMode = 'internal'" variant="outline">Post (Internal)</Button>
|
||||
<Button v-if="adminMode" type="submit" @click="submitMode = 'internal'" variant="outline">Post (Internal)</Button>
|
||||
<Button type="submit" @click="submitMode = 'public'">Post (Public)</Button>
|
||||
</div>
|
||||
</Form>
|
||||
|
||||
Reference in New Issue
Block a user