mirror of
https://github.com/flarum/framework.git
synced 2025-03-01 14:44:26 +08:00
fix(em): incorrect extension compatibility check
This commit is contained in:
parent
1b18f57353
commit
bbf069710a
@ -25,8 +25,8 @@ export default class ExternalExtension extends Model {
|
||||
readonly installed = false;
|
||||
|
||||
public isSupported(): boolean {
|
||||
const currentVersion = app.data.settings.version;
|
||||
const latestCompatibleVersion = this.latestFlarumVersionSupported();
|
||||
const currentVersion = app.data.settings.version.replace('^', '');
|
||||
const latestCompatibleVersion = this.latestFlarumVersionSupported().replace('^', '');
|
||||
|
||||
// If stability is not the same, it's not compatible.
|
||||
if (currentVersion.split('-')[1] !== latestCompatibleVersion.split('-')[1]) {
|
||||
|
@ -70,5 +70,6 @@
|
||||
}
|
||||
|
||||
.Badge--success {
|
||||
--badge-bg: var(--success-color);
|
||||
--badge-color: var(--control-success-color);
|
||||
--badge-bg: var(--control-success-bg);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user