Skip to content

Commit

Permalink
Small changes for remote connection
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Mar 24, 2024
1 parent 9e1254f commit 13c20b9
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions lib/adminCommonSocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -652,30 +652,28 @@ async function getListOfAllAdapters(adapter, lang, adminInstance) {
adapter.config.remoteWebInstance &&
objects[`system.adapter.${adapter.config.remoteWebInstance}`] &&
objects[`system.adapter.${adapter.config.remoteWebInstance}`].common?.enabled &&
objects[`system.adapter.vis-2`] &&
objects[`system.adapter.vis-2`].common?.enabled
objects[`system.adapter.vis-2.0`]?.common?.enabled
) {
list.push({
link: 'vis-2/index.html',
name: objects[`system.adapter.vis-2`].common.welcomeScreen?.[0]?.name || 'vis 2 runtime',
color: objects[`system.adapter.vis-2`].common.welcomeScreen?.[0]?.color || '#ffe9c8',
name: objects[`system.adapter.vis-2.0`].common.welcomeScreen?.[0]?.name || 'vis 2 runtime',
color: objects[`system.adapter.vis-2.0`].common.welcomeScreen?.[0]?.color || '#ffe9c8',
order: 0,
});
list.push({
link: 'vis-2/edit.html',
name: objects[`system.adapter.vis-2`].common.welcomeScreenPro?.[0]?.name || 'vis 2 editor',
color: objects[`system.adapter.vis-2`].common.welcomeScreenPro?.[0]?.color || '#c8ffe1',
name: objects[`system.adapter.vis-2.0`].common.welcomeScreenPro?.[0]?.name || 'vis 2 editor',
color: objects[`system.adapter.vis-2.0`].common.welcomeScreenPro?.[0]?.color || '#c8ffe1',
order: 1,
});
}
if (adapter.config.remoteAdminInstance &&
objects[`system.adapter.${adapter.config.remoteAdminInstance}`] &&
objects[`system.adapter.${adapter.config.remoteAdminInstance}`].common?.enabled
objects[`system.adapter.${adapter.config.remoteAdminInstance}`]?.common?.enabled
) {
list.push({
link: 'admin/index.html',
name: objects[`system.adapter.vis-2`].common.welcomeScreenPro?.[0]?.name || 'Admin',
color: objects[`system.adapter.vis-2`].common.welcomeScreenPro?.[0]?.color || 'pink',
name: objects[`system.adapter.${adapter.config.remoteAdminInstance}`].common.welcomeScreenPro?.[0]?.name || 'Admin',
color: objects[`system.adapter.${adapter.config.remoteAdminInstance}`].common.welcomeScreenPro?.[0]?.color || 'pink',
order: 5,
});
}
Expand Down

0 comments on commit 13c20b9

Please sign in to comment.