diff options
author | bobzel <zzzman@gmail.com> | 2022-06-17 09:33:01 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-06-17 09:33:01 -0400 |
commit | 21eb25198c27d65e398d11b018a8dc792297e35a (patch) | |
tree | 79c0617197a566b9d6deb11d0453e28d419ffac8 /src/client/views/nodes/button/FontIconBox.tsx | |
parent | 2cc83f81afa317c693aa45d3a2e1497ef7b2d477 (diff) |
updated fontIconBadge to use 'viewed' list to decrement value when items are viewed. cleaned up how sharedDoc is setup in currentUserUtils to allow updates to not require rebuilding DB
Diffstat (limited to 'src/client/views/nodes/button/FontIconBox.tsx')
-rw-r--r-- | src/client/views/nodes/button/FontIconBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/button/FontIconBox.tsx b/src/client/views/nodes/button/FontIconBox.tsx index a1b9023f3..97e6eddfe 100644 --- a/src/client/views/nodes/button/FontIconBox.tsx +++ b/src/client/views/nodes/button/FontIconBox.tsx @@ -521,7 +521,7 @@ export class FontIconBox extends DocComponent<ButtonProps>() { <div className={`menuButton ${this.type}`} style={{ color, backgroundColor }}> {this.icon === "pres-trail" ? trailsIcon : <FontAwesomeIcon className={`fontIconBox-icon-${this.type}`} icon={this.icon} color={color} />} {menuLabel} - <FontIconBadge collection={Cast(this.rootDoc.watchedDocuments, Doc, null)} /> + <FontIconBadge value={ScriptCast(this.Document.badgeValue,null)?.script.run({self:this.Document}).result} /> </div > ); break; |