Commit 68f58472 authored by Dmitry Volodin's avatar Dmitry Volodin
Browse files

Merge branch 'patch-uncol-tab-reopen' into 'microservices'

reopen tab fixed

See merge request !1187
parents 30ecda66 5eb504c3
Pipeline #8149 passed with stages
in 5 minutes and 51 seconds
......@@ -41,17 +41,17 @@ Ext.define("NOC.main.desktop.WorkplacePanel", {
},
// Launch application in tab
launchTab: function(panel_class, title, params, node) {
var me = this, tab;
me.app = Ext.create(panel_class, {
noc: params,
title: title,
closable: true
});
var me = this, tab,
app = Ext.create(panel_class, {
noc: params,
title: title,
closable: true
});
tab = me.add({
title: title,
closable: true,
layout: "fit",
items: [me.app],
items: app,
listeners: {
scope: me,
beforeclose: me.onTabClose
......@@ -112,10 +112,5 @@ Ext.define("NOC.main.desktop.WorkplacePanel", {
var me = this;
me.expandButton.setGlyph(NOC.glyph.expand);
me.expandButton.setTooltip(__("Collapse panels"));
},
//
getApp: function() {
var me = this;
return me.app;
}
});
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment