mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: disable team workspace (#5099)
This commit is contained in:
parent
b2f0c4f109
commit
09f5317768
@ -4,6 +4,7 @@ import 'package:appflowy/core/config/kv.dart';
|
|||||||
import 'package:appflowy/core/config/kv_keys.dart';
|
import 'package:appflowy/core/config/kv_keys.dart';
|
||||||
import 'package:appflowy/startup/startup.dart';
|
import 'package:appflowy/startup/startup.dart';
|
||||||
import 'package:collection/collection.dart';
|
import 'package:collection/collection.dart';
|
||||||
|
import 'package:flutter/foundation.dart';
|
||||||
|
|
||||||
typedef FeatureFlagMap = Map<FeatureFlag, bool>;
|
typedef FeatureFlagMap = Map<FeatureFlag, bool>;
|
||||||
|
|
||||||
@ -83,14 +84,18 @@ enum FeatureFlag {
|
|||||||
bool get isOn {
|
bool get isOn {
|
||||||
// release this feature in version 0.5.4
|
// release this feature in version 0.5.4
|
||||||
if ([
|
if ([
|
||||||
FeatureFlag.collaborativeWorkspace,
|
// FeatureFlag.collaborativeWorkspace,
|
||||||
FeatureFlag.membersSettings,
|
// FeatureFlag.membersSettings,
|
||||||
FeatureFlag.syncDatabase,
|
FeatureFlag.syncDatabase,
|
||||||
FeatureFlag.syncDocument,
|
FeatureFlag.syncDocument,
|
||||||
].contains(this)) {
|
].contains(this)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (kReleaseMode) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (_values.containsKey(this)) {
|
if (_values.containsKey(this)) {
|
||||||
return _values[this]!;
|
return _values[this]!;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user