projects
/
cinny.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
284ed9d
)
Added abbreviateNumber for notfication count (#82)
author
Ajay Bura
<ajbura@gmail.com>
Sun, 12 Sep 2021 15:12:51 +0000
(20:42 +0530)
committer
Ajay Bura
<ajbura@gmail.com>
Sun, 12 Sep 2021 15:12:51 +0000
(20:42 +0530)
src/util/common.js
patch
|
blob
|
history
diff --git
a/src/util/common.js
b/src/util/common.js
index 938ced54480b7420719da67a3a2cee681aa34e78..f434c5b3d070391567e9e662e8aede6e4f4aca57 100644
(file)
--- a/
src/util/common.js
+++ b/
src/util/common.js
@@
-28,3
+28,8
@@
export function getEventCords(ev) {
detail: ev.detail,
};
}
+
+export function abbreviateNumber(number) {
+ if (number > 99) return '99+';
+ return number;
+}