Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
6a7c8e22
Commit
6a7c8e22
authored
Aug 02, 2021
by
lianahus
Committed by
Aniket
Aug 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reset only if remixd is deactivated
parent
f2df1daa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
remix-ui-static-analyser.tsx
...x-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
+6
-6
No files found.
libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
View file @
6a7c8e22
...
@@ -95,14 +95,14 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
...
@@ -95,14 +95,14 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
}
}
})
})
props
.
analysisModule
.
on
(
'manager'
,
'pluginDeactivated'
,
(
plugin
)
=>
{
props
.
analysisModule
.
on
(
'manager'
,
'pluginDeactivated'
,
(
plugin
)
=>
{
// Reset warning state
setWarningState
([])
// Reset badge
props
.
event
.
trigger
(
'staticAnaysisWarning'
,
[])
// Reset state
dispatch
({
type
:
''
,
payload
:
{}
})
// Hide 'Enable Slither Analysis' checkbox
// Hide 'Enable Slither Analysis' checkbox
if
(
plugin
.
name
===
'remixd'
)
{
if
(
plugin
.
name
===
'remixd'
)
{
// Reset warning state
setWarningState
([])
// Reset badge
props
.
event
.
trigger
(
'staticAnaysisWarning'
,
[])
// Reset state
dispatch
({
type
:
''
,
payload
:
{}
})
setShowSlither
(
'hidden'
)
setShowSlither
(
'hidden'
)
setSlitherEnabled
(
false
)
setSlitherEnabled
(
false
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment