Skip to content

Commit

Permalink
chore(search): add isadmin option in research page
Browse files Browse the repository at this point in the history
  • Loading branch information
wrzrmzx committed Apr 14, 2024
1 parent c1ed033 commit f048d8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/video/SearchResult.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const props = defineProps<{
order: string
visibleSite: number
total: number
isAdmin: boolean
}>()
const emit = defineEmits<{
(event: 'update:total', value: boolean): void
Expand Down Expand Up @@ -105,6 +106,7 @@ function updateVisibleSite(visible_site: number) {
<VideoList
:videos="resultVideo.videos"
:count="limit"
:is-admin="isAdmin"
@refresh="refreshListVideo"
/>
</div>
Expand Down
3 changes: 3 additions & 0 deletions pages/search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ definePageMeta({
const route = useRoute()
const { t } = useI18n()
const auth = await useAuth()
const Types = [
{
value: 'video',
Expand Down Expand Up @@ -83,6 +85,7 @@ function updateType(type: string) {
:query-word="queryWord"
:order="order.value"
:visible-site="visibleSite"
:is-admin="auth.isAdmin"
/>
<PlaylistSearchResult
v-else
Expand Down

0 comments on commit f048d8e

Please sign in to comment.