Visual Console Refactor: bugfix

Former-commit-id: 10f2a2199275475b7674364bb5f3d595b65f12c9
This commit is contained in:
Alejandro Gallardo Escobar 2019-04-29 11:03:56 +02:00
parent e5c17f660b
commit 7f6ec7a501
3 changed files with 3 additions and 3 deletions

View File

@ -98,7 +98,7 @@ function createVisualConsole(
e.data.linkedLayoutId > 0 &&
e.data.link != null &&
e.data.link.length > 0 &&
(e.data.metaconsoleId == null || e.data.metaconsoleId === 0)
(e.data.linkedLayoutAgentId == null || e.data.linkedLayoutAgentId === 0)
) {
// Stop the current link behavior.
e.nativeEvent.preventDefault();

View File

@ -159,7 +159,7 @@ $visualConsoleItems = VisualConsole::getItemsFromDB(
// Change the links.
if (prevProps && prevProps.id !== newProps.id) {
var regex = /(id=|id_visual_console=|id_layout=)\d+(&?)/gi;
var regex = /(id=|id_visual_console=|id_layout=|id_visualmap=)\d+(&?)/gi;
var replacement = '$1' + newProps.id + '$2';
// Tab links.

View File

@ -261,7 +261,7 @@ $visualConsoleItems = VisualConsole::getItemsFromDB(
// Change the links.
if (prevProps && prevProps.id !== newProps.id) {
var regex = /(id=|id_visual_console=|id_layout=)\d+(&?)/gi;
var regex = /(id=|id_visual_console=|id_layout=|id_visualmap=)\d+(&?)/gi;
var replacement = '$1' + newProps.id + '$2';
// Tab links.