File tree 2 files changed +21
-14
lines changed
containers/DefaultPageLayout
2 files changed +21
-14
lines changed Original file line number Diff line number Diff line change @@ -89,20 +89,23 @@ const DefaultPageLayout: FC<DefaultPageLayoutProps> = observer((props) => {
89
89
/>
90
90
</ Alert >
91
91
) }
92
- { store . backendVersion && plugin ?. version && store . backendVersion !== plugin ?. version && (
93
- < Alert className = { styles . alert } severity = "warning" title = { 'Version mismatch!' } >
94
- Please make sure you have the same versions of the Grafana OnCall plugin and the Grafana OnCall engine,
95
- otherwise there could be issues with your Grafana OnCall installation!
96
- < br />
97
- { `Current plugin version: ${ plugin . version } , current engine version: ${ store . backendVersion } ` }
98
- < br />
99
- Please see{ ' ' }
100
- < a href = { 'https://grafana.com/docs/oncall/latest/open-source/#update-grafana-oncall-oss' } >
101
- the update instructions
102
- </ a >
103
- .
104
- </ Alert >
105
- ) }
92
+ { store . backendLicense === 'OpenSource' &&
93
+ store . backendVersion &&
94
+ plugin ?. version &&
95
+ store . backendVersion !== plugin ?. version && (
96
+ < Alert className = { styles . alert } severity = "warning" title = { 'Version mismatch!' } >
97
+ Please make sure you have the same versions of the Grafana OnCall plugin and the Grafana OnCall engine,
98
+ otherwise there could be issues with your Grafana OnCall installation!
99
+ < br />
100
+ { `Current plugin version: ${ plugin . version } , current engine version: ${ store . backendVersion } ` }
101
+ < br />
102
+ Please see{ ' ' }
103
+ < a href = { 'https://grafana.com/docs/oncall/latest/open-source/#update-grafana-oncall-oss' } >
104
+ the update instructions
105
+ </ a >
106
+ .
107
+ </ Alert >
108
+ ) }
106
109
{ currentTeam ?. limits . show_limits_warning &&
107
110
currentTeam ?. limits . period_title !== 'Version mismatch' && // don't show version mismatch warning twice
108
111
! getItem ( currentTeam . limits . warning_text ) && (
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ export class RootBaseStore {
41
41
@observable
42
42
backendVersion = '' ;
43
43
44
+ @observable
45
+ backendLicense = '' ;
46
+
44
47
@observable
45
48
pluginIsInitialized = true ;
46
49
@@ -138,6 +141,7 @@ export class RootBaseStore {
138
141
return ;
139
142
}
140
143
this . backendVersion = get_sync_response . version ;
144
+ this . backendLicense = get_sync_response . license ;
141
145
this . appLoading = false ;
142
146
}
143
147
You can’t perform that action at this time.
0 commit comments