File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export const ScriptingHeader: React.FC<Props> = ({ children }) => {
4747 } }
4848 />
4949 < Link href = "https://link.remote.it/desktop/help/device-scripting" >
50- < IconButton color = "grayDark" icon = "question-circle" />
50+ < IconButton color = "grayDark" icon = "question-circle" sx = { { paddingLeft : 0.5 } } />
5151 </ Link >
5252 < Route path = "/scripts" >
5353 < Tooltip
Original file line number Diff line number Diff line change @@ -32,16 +32,13 @@ export const ScriptingRouter: React.FC<{ layout: ILayout }> = ({ layout }) => {
3232 )
3333
3434 const locationParts = location . pathname . split ( '/' )
35- if ( [ 'scripts' , 'runs' ] . includes ( locationParts [ 1 ] ) && locationParts . length === 2 )
35+ if ( ( locationParts [ 1 ] === 'scripts' && locationParts . length === 2 ) || locationParts [ 1 ] === 'runs' )
3636 layout = { ...layout , singlePanel : true }
3737
3838 return (
3939 < DynamicPanel
4040 primary = {
4141 < Switch >
42- < Route path = "/scripts/add" >
43- < ScriptAddPage center />
44- </ Route >
4542 < Route path = "/runs/:fileID?" >
4643 < JobsPage />
4744 </ Route >
@@ -70,7 +67,7 @@ export const ScriptingRouter: React.FC<{ layout: ILayout }> = ({ layout }) => {
7067 </ Switch >
7168 }
7269 layout = { layout }
73- root = { [ '/script/:fileID?/:jobID?' , '/scripts/:fileID? ' , '/runs/:jobID?' ] }
70+ root = { [ '/script/:fileID?/:jobID?' , '/scripts' , '/runs/:jobID?' ] }
7471 />
7572 )
7673}
You can’t perform that action at this time.
0 commit comments