Skip to content

Commit acdfc04

Browse files
committed
add enable_nodered_tours
1 parent 0c88b70 commit acdfc04

5 files changed

Lines changed: 8 additions & 2 deletions

File tree

OpenFlow/src/Config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export class Config {
4848
Config.amqp_prefetch = parseInt(Config.getEnv("amqp_prefetch", "50"));
4949
Config.enable_entity_restriction = Config.parseBoolean(Config.getEnv("enable_entity_restriction", "false"));
5050
Config.enable_web_tours = Config.parseBoolean(Config.getEnv("enable_web_tours", "true"));
51+
Config.enable_nodered_tours = Config.parseBoolean(Config.getEnv("enable_nodered_tours", "true"));
5152
Config.auto_hourly_housekeeping = Config.parseBoolean(Config.getEnv("auto_hourly_housekeeping", "false"));
5253
Config.housekeeping_update_usage_hourly = Config.parseBoolean(Config.getEnv("housekeeping_update_usage_hourly", "false"));
5354
Config.housekeeping_update_usersize_hourly = Config.parseBoolean(Config.getEnv("housekeeping_update_usersize_hourly", "true"));
@@ -241,6 +242,7 @@ export class Config {
241242
public static amqp_prefetch: number = parseInt(Config.getEnv("amqp_prefetch", "50"));
242243
public static enable_entity_restriction: boolean = Config.parseBoolean(Config.getEnv("enable_entity_restriction", "false"));
243244
public static enable_web_tours: boolean = Config.parseBoolean(Config.getEnv("enable_web_tours", "true"));
245+
public static enable_nodered_tours: boolean = Config.parseBoolean(Config.getEnv("enable_nodered_tours", "true"));
244246
public static auto_hourly_housekeeping: boolean = Config.parseBoolean(Config.getEnv("auto_hourly_housekeeping", "true"));
245247
public static housekeeping_update_usage_hourly: boolean = Config.parseBoolean(Config.getEnv("housekeeping_update_usage_hourly", "false"));
246248
public static housekeeping_update_usersize_hourly: boolean = Config.parseBoolean(Config.getEnv("housekeeping_update_usersize_hourly", "true"));

OpenFlow/src/LoginProvider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ export class LoginProvider {
395395
multi_tenant: Config.multi_tenant,
396396
enable_entity_restriction: Config.enable_entity_restriction,
397397
enable_web_tours: Config.enable_web_tours,
398+
enable_nodered_tours: Config.enable_nodered_tours,
398399
collections_with_text_index: DatabaseConnection.collections_with_text_index,
399400
timeseries_collections: DatabaseConnection.timeseries_collections,
400401
ping_clients_interval: Config.ping_clients_interval,

OpenFlow/src/dockerdriver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export class dockerdriver implements i_nodered_driver {
162162
"NO_PROXY=" + Config.NO_PROXY,
163163
"prometheus_expose_metric=" + "false",
164164
"enable_analytics=" + Config.enable_analytics.toString(),
165-
"tours=" + Config.enable_web_tours.toString(),
165+
"tours=" + Config.enable_nodered_tours.toString(),
166166
"otel_trace_url=" + Config.otel_trace_url,
167167
"otel_metric_url=" + Config.otel_metric_url,
168168
"otel_trace_interval=" + Config.otel_trace_interval.toString(),

OpenFlow/src/public/Controllers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4480,7 +4480,7 @@ export class NoderedCtrl {
44804480

44814481
if (this.user.nodered == null) this.user.nodered = {} as any;
44824482
if ((this.user.nodered as any).monaco == null) (this.user.nodered as any).monaco = false;
4483-
if ((this.user.nodered as any).tours == null) (this.user.nodered as any).tours = WebSocketClientService.enable_web_tours;
4483+
if ((this.user.nodered as any).tours == null) (this.user.nodered as any).tours = WebSocketClientService.enable_nodered_tours;
44844484
if (this.user.nodered.function_external_modules == null) this.user.nodered.function_external_modules = true;
44854485

44864486
this.user.nodered.nodered_image_name = this.user.nodered.nodered_image_name || WebSocketClientService.nodered_images[0].name;

OpenFlow/src/public/WebSocketClientService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export class WebSocketClientService {
4242
this.nodered_images = data.nodered_images;
4343
this.enable_entity_restriction = data.enable_entity_restriction;
4444
this.enable_web_tours = data.enable_web_tours;
45+
this.enable_nodered_tours = data.enable_nodered_tours;
46+
4547
this.forceddomains = data.forceddomains;
4648

4749
if (data.collections_with_text_index) this.collections_with_text_index = data.collections_with_text_index;
@@ -190,6 +192,7 @@ export class WebSocketClientService {
190192
public multi_tenant: boolean;
191193
public enable_entity_restriction: boolean;
192194
public enable_web_tours: boolean;
195+
public enable_nodered_tours: boolean;
193196
public forceddomains: string[] = [];
194197
public collections_with_text_index: string[] = [];
195198
public timeseries_collections: string[] = [];

0 commit comments

Comments
 (0)