Skip to content

Conversation

@yann300
Copy link
Contributor

@yann300 yann300 commented Mar 2, 2021

This throws an exception while using file manager and file provider if no workspace has been set.

@yann300 yann300 requested review from LianaHus and ioedeveloper March 2, 2021 13:42
@yann300 yann300 force-pushed the throwIfNoWorkspace branch from c7f321b to 2174d84 Compare March 2, 2021 16:56
@yann300 yann300 enabled auto-merge March 2, 2021 17:07
@yann300 yann300 force-pushed the throwIfNoWorkspace branch from 9361b8b to cac3401 Compare March 2, 2021 17:39
const provider = fileManager.getProvider('workspace')
provider.lastLoadedGistId = gistId
} else {
modalDialogCustom.alert(errorLoadingFile.message || errorLoadingFile)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add a title to the modal, looks kind of unfinished without.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can update those, but most of the custom alert doesn't set any title..

Copy link
Contributor

Choose a reason for hiding this comment

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

I know. I'm putting everywhere now. Looks better

alert: function (title, text) {
if (text) return modal(title, yo`<div>${text}</div>`, null, { label: null })
return modal('', yo`<div>${title}</div>`, null, { label: null })
return modal('alert', yo`<div>${title}</div>`, null, { label: null })
Copy link
Contributor

Choose a reason for hiding this comment

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

capital?

@yann300 yann300 force-pushed the throwIfNoWorkspace branch 2 times, most recently from af63d1e to 86d4a9c Compare March 3, 2021 13:09
@yann300 yann300 force-pushed the throwIfNoWorkspace branch from 86d4a9c to d3b9305 Compare March 3, 2021 13:54
@yann300 yann300 disabled auto-merge March 3, 2021 16:33
@yann300 yann300 force-pushed the throwIfNoWorkspace branch from 0a63fd2 to 77925a0 Compare March 3, 2021 16:40
@yann300 yann300 force-pushed the throwIfNoWorkspace branch from a7c9c05 to a0d1fcc Compare March 3, 2021 19:40
@yann300 yann300 requested a review from LianaHus March 3, 2021 20:13
@yann300 yann300 force-pushed the throwIfNoWorkspace branch from 5639713 to aaeea9d Compare March 4, 2021 13:51
@yann300 yann300 merged commit d56bf6d into master Mar 4, 2021
@yann300 yann300 deleted the throwIfNoWorkspace branch March 4, 2021 14:14
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.

5 participants