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
ff766282
Unverified
Commit
ff766282
authored
Jul 13, 2020
by
yann300
Committed by
GitHub
Jul 13, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2947 from ethereum/yann300-patch-9
canActivate accept ethdoc
parents
c3edd392
864ed32b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
remixAppManager.js
src/remixAppManager.js
+2
-2
No files found.
src/remixAppManager.js
View file @
ff766282
...
@@ -15,7 +15,7 @@ export function isNative (name) {
...
@@ -15,7 +15,7 @@ export function isNative (name) {
}
}
export
function
canActivate
(
name
)
{
export
function
canActivate
(
name
)
{
return
[
'manager'
,
'debugger'
].
includes
(
name
)
return
[
'manager'
,
'debugger'
,
'ethdoc'
].
includes
(
name
)
}
}
export
class
RemixAppManager
extends
PluginManager
{
export
class
RemixAppManager
extends
PluginManager
{
...
@@ -29,7 +29,7 @@ export class RemixAppManager extends PluginManager {
...
@@ -29,7 +29,7 @@ export class RemixAppManager extends PluginManager {
}
}
async
canActivate
(
from
,
to
)
{
async
canActivate
(
from
,
to
)
{
return
true
//
canActivate(from.name)
return
canActivate
(
from
.
name
)
}
}
async
canDeactivate
(
from
,
to
)
{
async
canDeactivate
(
from
,
to
)
{
...
...
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