Skip to content

Commit 07bb9f4

Browse files
committed
updating file browser buttons
1 parent 23d9ecb commit 07bb9f4

File tree

7 files changed

+47
-33
lines changed

7 files changed

+47
-33
lines changed

MythicReactUI/src/components/pages/Callbacks/CallbacksTabsFileBrowser.js

+38-24
Original file line numberDiff line numberDiff line change
@@ -566,38 +566,27 @@ const FileBrowserTableTop = ({
566566
InputProps={{
567567
endAdornment: (
568568
<React.Fragment>
569-
<MythicStyledTooltip title={`Move back to previous listing`}>
570-
<IconButton style={{ padding: '3px' }}
571-
disabled={historyIndex >= history.length -1 }
572-
onClick={moveIndexToPreviousListing}
573-
color='info'
574-
size="large">
575-
<ArrowBackIcon />
576-
</IconButton>
577-
</MythicStyledTooltip>
578-
<MythicStyledTooltip title={`Move to next listing`}>
579-
<IconButton style={{ padding: '3px' }}
580-
disabled={historyIndex <= 0}
581-
onClick={moveIndexToNextListing}
582-
size="large"
583-
color='info'>
584-
<ArrowForwardIcon />
585-
</IconButton>
586-
</MythicStyledTooltip>
587569
<MythicStyledTooltip title={`Task current callback (${tabInfo["displayID"]}) to list contents`}>
588-
<IconButton style={{ padding: '3px' }} onClick={onLocalListFilesButton} size="large">
570+
<IconButton style={{ padding: '0 0px 0 0 ' }}
571+
disableRipple={true} disableFocusRipple={true}
572+
onClick={onLocalListFilesButton}
573+
size="large">
589574
<RefreshIcon color='info' />
590575
</IconButton>
591576
</MythicStyledTooltip>
592577
<MythicStyledTooltip title={`Upload file to folder via current callback (${tabInfo["displayID"]})`}>
593-
<IconButton style={{ padding: '3px' }} onClick={onLocalUploadFileButton} size="large">
578+
<IconButton style={{ padding: '3px' }}
579+
onClick={onLocalUploadFileButton}
580+
disableRipple={true} disableFocusRipple={true}
581+
size="large">
594582
<CloudUploadIcon color="info" />
595583
</IconButton>
596584
</MythicStyledTooltip>
597585
<MythicStyledTooltip title={showDeletedFiles ? 'Hide Deleted Files' : 'Show Deleted Files'}>
598586
<IconButton
599587
style={{ padding: '3px' }}
600588
onClick={onLocalToggleShowDeletedFiles}
589+
disableRipple={true} disableFocusRipple={true}
601590
size="large">
602591
{showDeletedFiles ? (
603592
<VisibilityIcon color="success" />
@@ -609,20 +598,45 @@ const FileBrowserTableTop = ({
609598
</React.Fragment>
610599
),
611600
startAdornment: (
612-
<React.Fragment>
601+
<div style={{display: "inline-flex",
602+
alignItems: "center",
603+
borderRight: "1px solid grey",
604+
marginRight: "10px",
605+
padding: "0 5px 0 0"}}>
613606
{tokenOptions.length > 0 ? (
614607
<CallbacksTabsTaskingInputTokenSelect options={tokenOptions} changeSelectedToken={changeSelectedToken}/>
615608
) : null}
609+
<MythicStyledTooltip title={`Move back to previous listing`}>
610+
<IconButton style={{ padding: '3px' }}
611+
disabled={historyIndex >= history.length -1 }
612+
disableRipple={true} disableFocusRipple={true}
613+
onClick={moveIndexToPreviousListing}
614+
color='info'
615+
size="large">
616+
<ArrowBackIcon />
617+
</IconButton>
618+
</MythicStyledTooltip>
619+
<MythicStyledTooltip title={`Move to next listing`}>
620+
<IconButton style={{ padding: '3px' }}
621+
disabled={historyIndex <= 0}
622+
disableRipple={true} disableFocusRipple={true}
623+
onClick={moveIndexToNextListing}
624+
size="large"
625+
color='info'>
626+
<ArrowForwardIcon />
627+
</IconButton>
628+
</MythicStyledTooltip>
616629
<MythicStyledTooltip title={"Move up a directory"} >
617-
<IconButton style={{padding: "3px"}}
630+
<IconButton style={{padding: "0 0 0 0"}}
618631
onClick={onLocalMoveUpDirectoryButton}
632+
disableRipple={true} disableFocusRipple={true}
619633
disabled={selectedFolderData.id === "" || selectedFolderData.parent_path_text === ""}
620634
>
621635
<KeyboardReturnIcon style={{rotate: "90deg"}} ></KeyboardReturnIcon>
622636
</IconButton>
623-
624637
</MythicStyledTooltip>
625-
</React.Fragment>),
638+
639+
</div>),
626640
style: { },
627641
}}
628642
/>

MythicReactUI/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {snackActions} from './components/utilities/Snackbar';
1414
import jwt_decode from 'jwt-decode';
1515
import {meState} from './cache';
1616

17-
export const mythicUIVersion = "0.2.4";
17+
export const mythicUIVersion = "0.2.5";
1818

1919
let fetchingNewToken = false;
2020

Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"files": {
33
"main.css": "/new/static/css/main.7e143bf2.css",
4-
"main.js": "/new/static/js/main.870dc238.js",
4+
"main.js": "/new/static/js/main.589358a1.js",
55
"static/media/mythic-red.png": "/new/static/media/mythic-red.203468a4e5240d239aa0.png",
66
"static/media/mythic_red_small.svg": "/new/static/media/mythic_red_small.793b41cc7135cdede246661ec232976b.svg",
77
"index.html": "/new/index.html",
88
"main.7e143bf2.css.map": "/new/static/css/main.7e143bf2.css.map",
9-
"main.870dc238.js.map": "/new/static/js/main.870dc238.js.map"
9+
"main.589358a1.js.map": "/new/static/js/main.589358a1.js.map"
1010
},
1111
"entrypoints": [
1212
"static/css/main.7e143bf2.css",
13-
"static/js/main.870dc238.js"
13+
"static/js/main.589358a1.js"
1414
]
1515
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/new/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><link rel="apple-touch-icon" href="/new/logo192.png"/><link rel="manifest" href="/new/manifest.json"/><title>Mythic</title><script defer="defer" src="/new/static/js/main.870dc238.js"></script><link href="/new/static/css/main.7e143bf2.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
1+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/new/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><link rel="apple-touch-icon" href="/new/logo192.png"/><link rel="manifest" href="/new/manifest.json"/><title>Mythic</title><script defer="defer" src="/new/static/js/main.589358a1.js"></script><link href="/new/static/css/main.7e143bf2.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

mythic-react-docker/mythic/public/static/js/main.870dc238.js mythic-react-docker/mythic/public/static/js/main.589358a1.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mythic-react-docker/mythic/public/static/js/main.870dc238.js.map mythic-react-docker/mythic/public/static/js/main.589358a1.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)