Skip to content

Commit

Permalink
fix(modal): add missing modal containers
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Feb 12, 2024
1 parent c53ce93 commit b939b26
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
-->

<template>
<NcModal ref="translate-modal" size="large" @close="$emit('close')">
<NcModal ref="translate-modal"
size="large"
:container="container"
@close="$emit('close')">
<div v-if="isMounted" class="translate-dialog">
<h2> {{ t('spreed', 'Translate message') }} </h2>
<div class="translate-dialog__wrapper">
Expand Down Expand Up @@ -128,6 +131,10 @@ export default {
},

computed: {
container() {
return this.$store.getters.getMainContainerSelector()
},

userLanguage() {
return navigator.language.substring(0, 2)
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
<div v-if="getFilteredDetails(index).length > 0 || selfHasVotedOption(index)"
class="results__option__details">
<PollVotersDetails v-if="details"
:container="container"
:details="getFilteredDetails(index)" />
<p v-if="selfHasVotedOption(index)" class="results__option-subtitle">
{{ t('spreed', 'You voted for this option') }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
-->

<template>
<NcPopover class="poll-voters-details" trigger="hover">
<NcPopover class="poll-voters-details" trigger="hover" :container="container">
<template #trigger>
<NcButton type="tertiary-no-background"
:aria-label="t('spreed','Voted participants')"
Expand Down Expand Up @@ -78,6 +78,11 @@ export default {
type: Array,
required: true,
},

container: {
type: String,
required: true,
}
},

setup() {
Expand Down

0 comments on commit b939b26

Please sign in to comment.