Browse Source

fix(desk): Hide badge if count is zero

version-14
Suraj Shetty 4 years ago
parent
commit
1d2053d915
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      frappe/public/js/frappe/widgets/shortcut_widget.js

+ 1
- 0
frappe/public/js/frappe/widgets/shortcut_widget.js View File

@@ -78,6 +78,7 @@ export default class ShortcutWidget extends Widget {
}

set_count(count) {
if (!count) return;
const get_label = () => {
if (this.format) {
return this.format.replace(/{}/g, count);


Loading…
Cancel
Save