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
c0bb8038
Commit
c0bb8038
authored
Dec 06, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add readonly property
parent
43f8a071
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
basicReadOnlyExplorer.js
src/app/files/basicReadOnlyExplorer.js
+1
-0
file-explorer.js
src/app/files/file-explorer.js
+1
-0
No files found.
src/app/files/basicReadOnlyExplorer.js
View file @
c0bb8038
...
@@ -6,6 +6,7 @@ class BasicReadOnlyExplorer {
...
@@ -6,6 +6,7 @@ class BasicReadOnlyExplorer {
this
.
event
=
new
EventManager
()
this
.
event
=
new
EventManager
()
this
.
files
=
{}
this
.
files
=
{}
this
.
type
=
type
this
.
type
=
type
this
.
readonly
=
true
}
}
close
(
cb
)
{
close
(
cb
)
{
...
...
src/app/files/file-explorer.js
View file @
c0bb8038
...
@@ -216,6 +216,7 @@ function fileExplorer (appAPI, files) {
...
@@ -216,6 +216,7 @@ function fileExplorer (appAPI, files) {
}
}
function
editModeOn
(
event
)
{
function
editModeOn
(
event
)
{
if
(
self
.
files
.
readonly
)
return
var
label
=
this
var
label
=
this
var
li
=
getLiFrom
(
label
)
var
li
=
getLiFrom
(
label
)
var
classes
=
li
.
className
var
classes
=
li
.
className
...
...
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