Преглед на файлове

feat(module_links): add dummy indicators

version-14
Prateeksha Singh преди 6 години
родител
ревизия
c19893e5bc
променени са 3 файла, в които са добавени 12 реда и са изтрити 5 реда
  1. +1
    -0
      frappe/public/js/frappe/views/components/Desktop.vue
  2. +11
    -4
      frappe/public/js/frappe/views/components/ModuleDetail.vue
  3. +0
    -1
      frappe/translate.py

+ 1
- 0
frappe/public/js/frappe/views/components/Desktop.vue Целия файл

@@ -115,6 +115,7 @@ export default {

.module-box:hover {
background-color: #fafbfc;
text-decoration: none;
}

.module-box-content {


+ 11
- 4
frappe/public/js/frappe/views/components/ModuleDetail.vue Целия файл

@@ -10,10 +10,11 @@
:key="section.label + item.label"
:data-youtube-id="item.type==='help' ? item.youtube_id : false"
>
<a :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>
<a class="indicator grey"
:href="item.route"
>
{{ item.label || __(item.name) }}
</a>
</p>
</div>
</div>
@@ -63,4 +64,10 @@ a:hover, a:focus {
text-decoration: underline;
}

// Overriding indicator styles
.indicator {
font-weight: inherit;
color: inherit;
}

</style>

+ 0
- 1
frappe/translate.py Целия файл

@@ -116,7 +116,6 @@ def get_dict(fortype, name=None):
messages += frappe.db.sql("select 'DocType:', name from tabDocType")
messages += frappe.db.sql("select 'Role:', name from tabRole")
messages += frappe.db.sql("select 'Module:', name from `tabModule Def`")
frappe.session.user)

message_dict = make_dict_from_messages(messages)
message_dict.update(get_dict_from_hooks(fortype, name))


Зареждане…
Отказ
Запис