Commit c4d95541 authored by LianaHus's avatar LianaHus Committed by Liana Husikyan

updated to add message from From

parent a858c69b
......@@ -173,10 +173,12 @@ class FileManager extends Plugin {
toaster.hide()
}
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)
return
}
let actions = (toaster) => {
return yo`
<div class="container ml-1">
......
......@@ -156,7 +156,6 @@ export class PermissionHandler {
<i class="fas fa-arrow-right"></i>
${imgTo}
</article>
`
globalRegistry.get('themeModule').api.fixInvert(imgFrom)
......@@ -171,6 +170,7 @@ export class PermissionHandler {
<p>${from.description || yo`<i>No description Provided</i>`}</p>
<h6>${toName} :</p>
<p>${to.description || yo`<i>No description Provided</i>`}</p>
<p>${message}</p>
</article>
<article class="${css.remember}">
......
......@@ -10,7 +10,7 @@ const requiredModules = [ // services + layout views + system views
'terminal', 'settings', 'pluginManager']
export function isNative (name) {
const nativePlugins = ['vyper', 'workshops', 'ethdoc', 'etherscan']
const nativePlugins = ['workshops', 'ethdoc', 'etherscan']
return nativePlugins.includes(name) || requiredModules.includes(name)
}
......@@ -37,6 +37,8 @@ export class RemixAppManager extends PluginManager {
if (to.name !== this.currentRequest) {
return false
}
if (isNative)
return true
return await this.permissionHandler.askPermition(from, to, method, message)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment