Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable "discard changes" in context menu of FE #2477

Merged
merged 2 commits into from
Dec 9, 2019
Merged

disable "discard changes" in context menu of FE #2477

merged 2 commits into from
Dec 9, 2019

Conversation

LianaHus
Copy link
Collaborator

@LianaHus LianaHus commented Dec 9, 2019

No description provided.

src/app/files/file-explorer.js Outdated Show resolved Hide resolved
src/app/files/fileManager.js Outdated Show resolved Hide resolved
src/app/ui/contextMenu.js Outdated Show resolved Hide resolved
@@ -73,6 +78,7 @@ class CompilerContainer {

this.editor.event.register('contentChanged', () => {
if (!this._view.compileIcon) return
this.scheduleCompilation.bind(this)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why you need to bind here.

@@ -40,12 +40,12 @@ module.exports = (event, items) => {
window.removeEventListener('click', hide)
}

var menu = Object.keys(items).map((item, index) => {
var current = yo`<li id="menuitem${item.toLowerCase()}" class=${css.liitem}>${item}</li>`
const menu = Object.keys(items).map((item, index) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants