mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Only offer app version downgrade if updateChannel differs from current version
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
6b9c55365c
commit
28d0667dd8
1 file changed
+3
-1
@@ -107,7 +107,9 @@ export class UserStore extends BaseStore<UserStoreModel> /* implements UserStore
|
|||||||
return this.shell || process.env.SHELL || process.env.PTYSHELL;
|
return this.shell || process.env.SHELL || process.env.PTYSHELL;
|
||||||
}
|
}
|
||||||
|
|
||||||
readonly isAllowedToDowngrade = new SemVer(getAppVersion()).prerelease[0] !== "latest";
|
@computed get isAllowedToDowngrade() {
|
||||||
|
return new SemVer(getAppVersion()).prerelease[0] !== this.updateChannel;
|
||||||
|
}
|
||||||
|
|
||||||
startMainReactions() {
|
startMainReactions() {
|
||||||
// track telemetry availability
|
// track telemetry availability
|
||||||
|
|||||||
Reference in new issue
Block a user