aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentButtonBar.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-09-17 22:11:22 -0400
committerbobzel <zzzman@gmail.com>2024-09-17 22:11:22 -0400
commit4e0ea65c08ff07429cb32f3907268206c80889fa (patch)
treefeb04e318ba52bb41b22f3cb6f94f4b21c35b5a3 /src/client/views/DocumentButtonBar.tsx
parent31321f6def982305ea89cdfe5a873b942060eb84 (diff)
linted cardView files after merge.
Diffstat (limited to 'src/client/views/DocumentButtonBar.tsx')
-rw-r--r--src/client/views/DocumentButtonBar.tsx51
1 files changed, 20 insertions, 31 deletions
diff --git a/src/client/views/DocumentButtonBar.tsx b/src/client/views/DocumentButtonBar.tsx
index ccde1de80..87dd5f45a 100644
--- a/src/client/views/DocumentButtonBar.tsx
+++ b/src/client/views/DocumentButtonBar.tsx
@@ -298,16 +298,12 @@ export class DocumentButtonBar extends ObservableReactComponent<{ views: () => (
key={icon.toString()}
size="sm"
icon={icon}
- onClick={e => {
- if (name === 'tags'){
- (targetDoc && (targetDoc[DocData].showIconTags = !targetDoc[DocData].showIconTags))
+ onClick={() => {
+ if (name === 'tags') {
+ targetDoc && (targetDoc[DocData].showIconTags = !targetDoc[DocData].showIconTags);
} else {
- (targetDoc && (targetDoc[DocData].showLabels = !targetDoc[DocData].showLabels))
+ targetDoc && (targetDoc[DocData].showLabels = !targetDoc[DocData].showLabels);
}
-
-
-
-
}}
/>
</div>
@@ -315,31 +311,24 @@ export class DocumentButtonBar extends ObservableReactComponent<{ views: () => (
);
};
-
-
-
return !targetDoc ? null : (
- <div className='documentButtonBar-icon'>
- <div className="documentButtonBar-pinTypes" style = {{width: '40px'}}>
- {metaBtn('tags', 'star')}
- {metaBtn("keywords", 'id-card')}
- </div>
-
- <Tooltip title={<div className="dash-keyword-button">Open keyword menu</div>}>
- <div
- className="documentButtonBar-icon"
- style={{ color: 'white' }}
- onClick={() => {
- // targetDoc[DocData].showIconTags = !targetDoc[DocData].showIconTags;
- }}
- >
-
-
- <FontAwesomeIcon className="documentdecorations-icon" icon="tag" />
+ <div className="documentButtonBar-icon">
+ <div className="documentButtonBar-pinTypes" style={{ width: '40px' }}>
+ {metaBtn('tags', 'star')}
+ {metaBtn('keywords', 'id-card')}
</div>
- </Tooltip>
- </div>
+ <Tooltip title={<div className="dash-keyword-button">Open keyword menu</div>}>
+ <div
+ className="documentButtonBar-icon"
+ style={{ color: 'white' }}
+ onClick={() => {
+ // targetDoc[DocData].showIconTags = !targetDoc[DocData].showIconTags;
+ }}>
+ <FontAwesomeIcon className="documentdecorations-icon" icon="tag" />
+ </div>
+ </Tooltip>
+ </div>
);
}
@@ -519,4 +508,4 @@ export class DocumentButtonBar extends ObservableReactComponent<{ views: () => (
</div>
);
}
-} \ No newline at end of file
+}