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
4d180a48
Commit
4d180a48
authored
Mar 15, 2021
by
aniket-engg
Committed by
Aniket
Mar 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ok to OK in file explorer modals
parent
7d6ba826
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
file-explorer.tsx
libs/remix-ui/file-explorer/src/lib/file-explorer.tsx
+5
-5
No files found.
libs/remix-ui/file-explorer/src/lib/file-explorer.tsx
View file @
4d180a48
...
...
@@ -366,7 +366,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
const
isDir
=
state
.
fileManager
.
isDirectory
(
path
)
modal
(
`Delete
${
isDir
?
'folder'
:
'file'
}
`
,
`Are you sure you want to delete
${
path
}
${
isDir
?
'folder'
:
'file'
}
?`
,
{
label
:
'O
k
'
,
label
:
'O
K
'
,
fn
:
async
()
=>
{
try
{
const
fileManager
=
state
.
fileManager
...
...
@@ -545,7 +545,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
loadFile
(
name
)
}
else
{
modal
(
'Confirm overwrite'
,
`The file
${
name
}
already exists! Would you like to overwrite it?`
,
{
label
:
'O
k
'
,
label
:
'O
K
'
,
fn
:
()
=>
{
loadFile
(
name
)
}
...
...
@@ -560,7 +560,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
const
publishToGist
=
()
=>
{
modal
(
'Create a public gist'
,
'Are you sure you want to publish all your files in browser directory anonymously as a public gist on github.com? Note: this will not include directories.'
,
{
label
:
'O
k
'
,
label
:
'O
K
'
,
fn
:
toGist
},
{
label
:
'Cancel'
,
...
...
@@ -578,7 +578,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
}
else
{
if
(
data
.
html_url
)
{
modal
(
'Gist is ready'
,
`The gist is at
${
data
.
html_url
}
. Would you like to open it in a new window?`
,
{
label
:
'O
k
'
,
label
:
'O
K
'
,
fn
:
()
=>
{
window
.
open
(
data
.
html_url
,
'_blank'
)
}
...
...
@@ -808,7 +808,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
}
if
(
helper
.
checkSpecialChars
(
content
))
{
modal
(
'Validation Error'
,
'Special characters are not allowed'
,
{
label
:
'O
k
'
,
label
:
'O
K
'
,
fn
:
()
=>
{}
},
null
)
}
else
{
...
...
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