mirror of https://gitee.com/bigwinds/arangodb
fixed issue #735. A click on the app img opens the app in a new tab now
This commit is contained in:
parent
593d277b6f
commit
7e014039f9
|
@ -21,7 +21,8 @@
|
||||||
|
|
||||||
events: {
|
events: {
|
||||||
'click .icon_arangodb_info' : 'showDocu',
|
'click .icon_arangodb_info' : 'showDocu',
|
||||||
'click' : 'editFoxxDialog'
|
'click .icon_arangodb_settings2' : 'editFoxxDialog',
|
||||||
|
'click' : 'openAppInNewTab'
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize: function(){
|
initialize: function(){
|
||||||
|
@ -149,6 +150,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
openAppInNewTab: function() {
|
||||||
|
var url = window.location.origin + "/_db/_system" + this.model.get("mount");
|
||||||
|
var windowRef = window.open(url, this.model.get("title"));
|
||||||
|
windowRef.focus();
|
||||||
|
},
|
||||||
|
|
||||||
uninstall: function () {
|
uninstall: function () {
|
||||||
if (!this.model.get("isSystem")) {
|
if (!this.model.get("isSystem")) {
|
||||||
this.model.destroy({ wait: true });
|
this.model.destroy({ wait: true });
|
||||||
|
|
Loading…
Reference in New Issue