Fixes 'empty'/not load settings page when required plugins are not installed at all

Change-Id: I9ea49a464314e75e74fc985b1c8028fad37c0a37
This commit is contained in:
Roman Babyuk 2016-09-19 19:01:33 +03:00
parent 1301beb522
commit 7efc72e607
1 changed files with 6 additions and 0 deletions

View File

@ -12,10 +12,12 @@ attributes:
restrictions:
- condition: "(settings:influxdb_grafana == null) or (settings:influxdb_grafana.metadata.enabled != true)"
action: none
strict: false
message: "The StackLight InfluxDB-Grafana plugin must be installed and enabled. Or use InfluxDB in 'remote' mode"
- condition: "(settings:elasticsearch_kibana == null) or (settings:elasticsearch_kibana.metadata.enabled != true)
and (settings:telemetry.event_api.value == true or settings:telemetry.resource_api.value == true)"
action: none
strict: false
message: "The StackLight Elasticsearch-Kibana plugin must be installed and enabled. Or use Elasticsearch in 'remote' mode"
event_api:
@ -29,6 +31,7 @@ attributes:
action: hide
- condition: "(settings:elasticsearch_kibana == null) or (settings:elasticsearch_kibana.metadata.enabled != true) and settings:telemetry.event_api.value == true"
action: none
strict: false
message: "The StackLight Elasticsearch-Kibana plugin must be installed and enabled. Or use Elasticsearch in 'remote' mode"
resource_api:
@ -42,6 +45,7 @@ attributes:
action: hide
- condition: "(settings:elasticsearch_kibana == null) or (settings:elasticsearch_kibana.metadata.enabled != true) and settings:telemetry.resource_api.value == true"
action: none
strict: false
message: "The StackLight Elasticsearch-Kibana plugin must be installed and enabled. Or use Elasticsearch in 'remote' mode"
elasticsearch_mode:
@ -56,6 +60,7 @@ attributes:
restrictions:
- condition: "(settings:elasticsearch_kibana == null) or (settings:elasticsearch_kibana.metadata.enabled != true)"
action: disable
strict: false
message: "The StackLight Elasticsearch-Kibana plugin must be installed and enabled. Or use Elasticsearch in 'external' mode"
- data: "remote"
label: "Use External Elasticsearch"
@ -113,6 +118,7 @@ attributes:
restrictions:
- condition: "(settings:influxdb_grafana == null) or (settings:influxdb_grafana.metadata.enabled != true)"
action: disable
strict: false
message: "The StackLight InfluxDB-Grafana plugin must be installed and enabled. Or use InfluxDB 'External' option below"
- data: 'remote'
label: "Use External InfluxDB"