mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
This commit is contained in:
commit
19471fcec4
|
@ -17,7 +17,7 @@
|
|||
<a class="headerButton <%= app.get('scripts').length ? '' : 'disabled' %>" title="Scripts">
|
||||
<i class="fa fa-cogs"></i>
|
||||
</a>
|
||||
<ul class="script-dropdown-menu" id="scripts_dropdown">
|
||||
<ul class="script-dropdown-menu dropdown-menu" id="scripts_dropdown">
|
||||
<% app.get('scripts').forEach(function (script) { %>
|
||||
<li class="dropdown-item">
|
||||
<a class="tab" data-script="<%= script.name %>"><%= script.title %></a>
|
||||
|
|
|
@ -13,11 +13,12 @@
|
|||
'click .delete': 'deleteApp',
|
||||
'click #configure-app': 'showConfigureDialog',
|
||||
'click #app-switch-mode': 'toggleDevelopment',
|
||||
"click #app-scripts": "toggleScripts",
|
||||
"click #app-scripts [data-script]": "runScript",
|
||||
"click #app-tests": "runTests",
|
||||
"click #app-upgrade": "upgradeApp",
|
||||
"click #download-app": "downloadApp"
|
||||
"click #download-app": "downloadApp",
|
||||
"mouseenter #app-scripts": "showDropdown",
|
||||
"mouseleave #app-scripts": "hideDropdown"
|
||||
},
|
||||
|
||||
downloadApp: function() {
|
||||
|
@ -33,12 +34,6 @@
|
|||
});
|
||||
},
|
||||
|
||||
toggleScripts: function() {
|
||||
if (this.model.get('scripts').length) {
|
||||
$("#scripts_dropdown").toggle(200);
|
||||
}
|
||||
},
|
||||
|
||||
updateConfig: function() {
|
||||
this.model.getConfiguration(function(cfg) {
|
||||
this._appConfig = cfg;
|
||||
|
@ -245,6 +240,16 @@
|
|||
"modalTable.ejs", "Configure application", buttons, tableContent
|
||||
);
|
||||
|
||||
},
|
||||
|
||||
showDropdown: function () {
|
||||
if (this.model.get('scripts').length) {
|
||||
$("#scripts_dropdown").show(200);
|
||||
}
|
||||
},
|
||||
|
||||
hideDropdown: function () {
|
||||
$("#scripts_dropdown").hide();
|
||||
}
|
||||
|
||||
});
|
||||
|
|
|
@ -97,12 +97,15 @@
|
|||
}
|
||||
}
|
||||
&-spec {
|
||||
margin-bottom: 0;
|
||||
|
||||
&-suites {
|
||||
& & {
|
||||
margin-left: 20px;
|
||||
}
|
||||
dd {
|
||||
margin-left: 0;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
&-tests {
|
||||
|
|
Loading…
Reference in New Issue