Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cribjs-editor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
cribjs-editor
Commits
095a7572
Commit
095a7572
authored
Oct 07, 2020
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add App Page: Allow creation of completely empty Apps
parent
f49e15de
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
gadget/gadget_cribjs_page_add_application.js
gadget/gadget_cribjs_page_add_application.js
+5
-10
No files found.
gadget/gadget_cribjs_page_add_application.js
View file @
095a7572
...
...
@@ -126,15 +126,6 @@
options
.
crib_url
=
"
https://
"
+
options
.
subdomain
+
BASE_CRIB_WILDCARD
;
}
// If no Zip is provided no need to continue
if
(
gadget
.
props
.
element
.
querySelector
(
"
form.crib-load-from-zip .load-zip-file
"
).
files
.
length
===
0
&&
gadget
.
props
.
element
.
querySelector
(
"
form.crib-load-from-zip .load-zip-url
"
).
value
.
length
===
0
)
{
logAddApp
(
gadget
,
"
Please set a Zip File or Zip Url
"
);
return
;
}
// Start the process to add the application
return
RSVP
.
Queue
()
.
push
(
function
()
{
...
...
@@ -154,9 +145,13 @@
.
querySelector
(
"
form.crib-load-from-zip .load-zip-file
"
).
files
.
length
!==
0
)
{
logAddApp
(
gadget
,
"
Will load Zip from File
"
);
promise_list
.
push
(
loadCribJSFromZipFile
(
gadget
,
event
,
logAddApp
));
}
else
{
}
else
if
(
gadget
.
props
.
element
.
querySelector
(
"
form.crib-load-from-zip .load-zip-url
"
).
value
)
{
logAddApp
(
gadget
,
"
Will load Zip from Url
"
);
promise_list
.
push
(
loadCribJSFromZipUrl
(
gadget
,
event
,
logAddApp
));
}
else
{
logAddApp
(
gadget
,
"
Will not load any Zip
"
);
promise_list
.
push
([]);
}
promise_list
.
push
(
getApplicationList
(
gadget
));
return
RSVP
.
all
(
promise_list
);
...
...
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