Skip to content
Snippets Groups Projects
Commit 37f275a6 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

Prevent highlight in sub-articles

parent 87f562d2
No related branches found
No related tags found
No related merge requests found
<template>
<li :class="['definition', 'level'+level]" :ref="allow_higlight ? 'def' + body.id : ''" :id="allow_higlight? 'def' + body.id : ''">
<li :class="['definition', 'level'+level]" :ref="level != 9 ? 'def' + body.id : ''" :id="level != 9? 'def' + body.id : ''">
<span v-if="allow_higlight" :aria-label="'Definisjon '+ def_number"/>
<ul class="explanations" >
<DefElement :body="explanation" :dictionary="dictionary" :has_article_ref=has_article_ref(explanation) v-for="(explanation, index) in explanations" :key="index" @article-click="article_link_click" />
......@@ -14,7 +14,7 @@
<CompoundList :body="compound_list" :dictionary="dictionary" v-for="(compound_list, index) in compund_lists" :key="index" @article-click="article_link_click" />
</ul>
<div :is="level < 3 ? 'ol' : 'ul'" class="sub_definitions" v-if="subdefs.length">
<Definition :def_number='index+1' :allow_higlight="subdef.id != body.id" :level="level+1" :body="subdef" v-for="(subdef, index) in subdefs" :dictionary="dictionary" :key="index" @article-click="article_link_click" />
<Definition :def_number='index+1' :level="level+1" :body="subdef" v-for="(subdef, index) in subdefs" :dictionary="dictionary" :key="index" @article-click="article_link_click" />
</div>
</li>
</template>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment