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
c4d95541
Commit
c4d95541
authored
Mar 04, 2020
by
LianaHus
Committed by
Liana Husikyan
Mar 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated to add message from From
parent
a858c69b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
fileManager.js
src/app/files/fileManager.js
+3
-1
persmission-handler.js
src/app/ui/persmission-handler.js
+1
-1
remixAppManager.js
src/remixAppManager.js
+3
-1
No files found.
src/app/files/fileManager.js
View file @
c4d95541
...
@@ -173,10 +173,12 @@ class FileManager extends Plugin {
...
@@ -173,10 +173,12 @@ class FileManager extends Plugin {
toaster
.
hide
()
toaster
.
hide
()
}
}
if
(
this
.
currentRequest
)
{
if
(
this
.
currentRequest
)
{
if
(
isNative
(
this
.
currentRequest
.
from
))
{
const
canCall
=
this
.
call
(
'manager'
,
'canCall'
,
{
name
:
this
.
currentRequest
.
from
},
this
.
profile
,
'setFile'
)
if
(
canCall
)
{
this
.
_setFileInternal
(
path
,
content
)
this
.
_setFileInternal
(
path
,
content
)
return
return
}
}
let
actions
=
(
toaster
)
=>
{
let
actions
=
(
toaster
)
=>
{
return
yo
`
return
yo
`
<div class="container ml-1">
<div class="container ml-1">
...
...
src/app/ui/persmission-handler.js
View file @
c4d95541
...
@@ -156,7 +156,6 @@ export class PermissionHandler {
...
@@ -156,7 +156,6 @@ export class PermissionHandler {
<i class="fas fa-arrow-right"></i>
<i class="fas fa-arrow-right"></i>
${
imgTo
}
${
imgTo
}
</article>
</article>
`
`
globalRegistry
.
get
(
'themeModule'
).
api
.
fixInvert
(
imgFrom
)
globalRegistry
.
get
(
'themeModule'
).
api
.
fixInvert
(
imgFrom
)
...
@@ -171,6 +170,7 @@ export class PermissionHandler {
...
@@ -171,6 +170,7 @@ export class PermissionHandler {
<p>
${
from
.
description
||
yo
`<i>No description Provided</i>`
}
</p>
<p>
${
from
.
description
||
yo
`<i>No description Provided</i>`
}
</p>
<h6>
${
toName
}
:</p>
<h6>
${
toName
}
:</p>
<p>
${
to
.
description
||
yo
`<i>No description Provided</i>`
}
</p>
<p>
${
to
.
description
||
yo
`<i>No description Provided</i>`
}
</p>
<p>
${
message
}
</p>
</article>
</article>
<article class="
${
css
.
remember
}
">
<article class="
${
css
.
remember
}
">
...
...
src/remixAppManager.js
View file @
c4d95541
...
@@ -10,7 +10,7 @@ const requiredModules = [ // services + layout views + system views
...
@@ -10,7 +10,7 @@ const requiredModules = [ // services + layout views + system views
'terminal'
,
'settings'
,
'pluginManager'
]
'terminal'
,
'settings'
,
'pluginManager'
]
export
function
isNative
(
name
)
{
export
function
isNative
(
name
)
{
const
nativePlugins
=
[
'
vyper'
,
'
workshops'
,
'ethdoc'
,
'etherscan'
]
const
nativePlugins
=
[
'workshops'
,
'ethdoc'
,
'etherscan'
]
return
nativePlugins
.
includes
(
name
)
||
requiredModules
.
includes
(
name
)
return
nativePlugins
.
includes
(
name
)
||
requiredModules
.
includes
(
name
)
}
}
...
@@ -37,6 +37,8 @@ export class RemixAppManager extends PluginManager {
...
@@ -37,6 +37,8 @@ export class RemixAppManager extends PluginManager {
if
(
to
.
name
!==
this
.
currentRequest
)
{
if
(
to
.
name
!==
this
.
currentRequest
)
{
return
false
return
false
}
}
if
(
isNative
)
return
true
return
await
this
.
permissionHandler
.
askPermition
(
from
,
to
,
method
,
message
)
return
await
this
.
permissionHandler
.
askPermition
(
from
,
to
,
method
,
message
)
}
}
...
...
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