|
|
@@ -6,40 +6,12 @@ |
|
|
|
class="border section-box" |
|
|
|
> |
|
|
|
<h4 class="h4"> {{ section.label }} </h4> |
|
|
|
<div v-for="item in section.items" class="link-item small" |
|
|
|
<module-link-item v-for="item in section.items" class=" small" |
|
|
|
:key="section.label + item.label" |
|
|
|
:data-youtube-id="item.type==='help' ? item.youtube_id : false" |
|
|
|
v-bind="item" |
|
|
|
> |
|
|
|
<div v-if="item.dependencies && item.incomplete_dependencies" |
|
|
|
@mouseover="item.hover = true" @mouseleave="item.hover = false" |
|
|
|
class="text-muted indicator grey" |
|
|
|
> |
|
|
|
{{ item.label || __(item.name) }} |
|
|
|
|
|
|
|
<div v-show="item.hover" |
|
|
|
class="popover fade top in" role="tooltip" id="popover515340" style="top: 221.562px; left: 581.914px; display: block;" |
|
|
|
> |
|
|
|
|
|
|
|
<div class="arrow" style="left: 50%;"></div> |
|
|
|
<h3 class="popover-title" style="display: none;"></h3> |
|
|
|
<div class="popover-content">{{ __("You need to create these first: " + item.incomplete_dependencies.join(", ")) }}</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-else> |
|
|
|
<a class="indicator" |
|
|
|
:class="item.onboard && !item.count ? 'orange' : 'grey'" |
|
|
|
:href="item.route" |
|
|
|
> |
|
|
|
{{ item.label || __(item.name) }} |
|
|
|
</a> |
|
|
|
<span class="open-notification global hide" |
|
|
|
@click="item.doctype || item.name ? frappe.ui.notifications.show_open_count_list(item.doctype || item.name) : false" |
|
|
|
:data-doctype="item.doctype || item.name"></span> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</module-link-item> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
@@ -50,7 +22,12 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import ModuleLinkItem from "./ModuleLinkItem.vue"; |
|
|
|
|
|
|
|
export default { |
|
|
|
components: { |
|
|
|
ModuleLinkItem |
|
|
|
}, |
|
|
|
props: ['module_name', 'sections'], |
|
|
|
updated() { |
|
|
|
frappe.app.update_notification_count_in_modules(); |
|
|
@@ -68,11 +45,6 @@ export default { |
|
|
|
.section-box { |
|
|
|
padding: 5px 20px; |
|
|
|
border-radius: 4px; |
|
|
|
|
|
|
|
.link-item { |
|
|
|
position: relative; |
|
|
|
margin: 10px 0px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.skeleton-section-box { |
|
|
@@ -85,18 +57,4 @@ export default { |
|
|
|
margin-bottom: 15px; |
|
|
|
} |
|
|
|
|
|
|
|
a:hover, a:focus { |
|
|
|
text-decoration: underline; |
|
|
|
} |
|
|
|
|
|
|
|
// Overriding indicator styles |
|
|
|
.indicator { |
|
|
|
font-weight: inherit; |
|
|
|
color: inherit; |
|
|
|
} |
|
|
|
|
|
|
|
.disabled { |
|
|
|
color: blue; |
|
|
|
} |
|
|
|
|
|
|
|
</style> |