[enhance] Add tooltips for progress and targets
This commit is contained in:
parent
2e46b1d70c
commit
4fba84f93e
2 changed files with 4 additions and 3 deletions
|
|
@ -11,7 +11,7 @@
|
|||
<div class="navbar-center ellipsis" style="display: none;"></div>
|
||||
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li class="user-progress hide">
|
||||
<li class="user-progress hide" title="Your Setup Progress">
|
||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#" onclick="return false;" style="height: 40px;">
|
||||
<div class="progress-chart" style"width: 50px; margin-top: 8px;"><div class="progress">
|
||||
<div class="progress-bar"></div>
|
||||
|
|
|
|||
|
|
@ -66,11 +66,12 @@ frappe.ui.notifications = {
|
|||
|
||||
add_notification: function(name, value, doc_dt, target = false) {
|
||||
let label = this.config[name] ? this.config[name].label : name;
|
||||
let title = target ? `title="Your Target"` : '';
|
||||
let $list_item = !target
|
||||
? $(`<li><a class="badge-hover" data-doctype="${name}">${__(label)}
|
||||
? $(`<li><a class="badge-hover" data-doctype="${name}" ${title}>${__(label)}
|
||||
<span class="badge pull-right">${value}</span>
|
||||
</a></li>`)
|
||||
: $(`<li><a class="progress-small" data-doctype="${doc_dt}"
|
||||
: $(`<li><a class="progress-small" ${title} data-doctype="${doc_dt}"
|
||||
data-doc="${name}"><span class="dropdown-item-label">${__(label)}<span>
|
||||
<div class="progress-chart"><div class="progress">
|
||||
<div class="progress-bar" style="width: ${value}%"></div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue