Skip to content

Commit

Permalink
Handle the DMCA link in the same way as "Open form"
Browse files Browse the repository at this point in the history
  • Loading branch information
obulat committed Apr 14, 2023
1 parent 513f6c0 commit 40699fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
v-if="media.foreign_landing_url && selectedReason === DMCA"
:provider="providerName"
:foreign-landing-url="media.foreign_landing_url"
@click="handleDmcaSubmit"
/>
<VReportDescForm
v-if="selectedReason !== DMCA"
Expand Down
5 changes: 5 additions & 0 deletions frontend/src/components/VContentReport/VDmcaNotice.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
:aria-label="$t('media-details.content-report.form.dmca.form')"
:href="DMCA_FORM_URL"
class="text-pink hover:underline"
@click="$emit('click')"
>{{ $t("media-details.content-report.form.dmca.form") }}</VLink
>
</template>
Expand All @@ -24,6 +25,7 @@
import { defineComponent } from "vue"
import { DMCA_FORM_URL } from "~/constants/content-report"
import { defineEvent } from "~/types/emits"
import VLink from "~/components/VLink.vue"
Expand All @@ -46,6 +48,9 @@ export default defineComponent({
required: true,
},
},
emits: {
click: defineEvent(),
},
setup() {
return {
DMCA_FORM_URL,
Expand Down

0 comments on commit 40699fa

Please sign in to comment.