feat: read only mode

This commit is contained in:
Jannat Patel
2025-04-30 18:03:00 +05:30
parent 0d32c2a9d9
commit 603e80fd26
26 changed files with 427 additions and 302 deletions

View File

@@ -16,7 +16,10 @@
},
]"
/>
<div v-if="user.data?.name" class="flex items-center space-x-2">
<div
v-if="user.data?.name && !readOnlyMode"
class="flex items-center space-x-2"
>
<router-link
v-if="user.data.name == job.data?.owner"
:to="{
@@ -54,7 +57,7 @@
{{ __('You have applied') }}
</Badge>
</div>
<div v-else>
<div v-else-if="!readOnlyMode">
<Button @click="redirectToLogin(job.data?.name)">
<span>
{{ __('Login to apply') }}
@@ -181,6 +184,7 @@ const user = inject('$user')
const dayjs = inject('$dayjs')
const { brand } = sessionStore()
const showApplicationModal = ref(false)
const readOnlyMode = window.read_only_mode
const props = defineProps({
job: {