This website works better with JavaScript.
Home
Explore
Help
Sign In
anoopmb
/
frappe
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
fix(desk): Hide badge if count is zero
version-14
Suraj Shetty
4 years ago
parent
8e9b1805e8
commit
1d2053d915
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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);
Write
Preview
Loading…
Cancel
Save