mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-18 10:31:50 +08:00
feat(editor): add feature flag service (#9592)
This commit is contained in:
+5
-4
@@ -1,5 +1,6 @@
|
||||
import type { ReferenceInfo } from '@blocksuite/affine-model';
|
||||
import {
|
||||
FeatureFlagService,
|
||||
GenerateDocUrlProvider,
|
||||
type LinkEventType,
|
||||
type TelemetryEvent,
|
||||
@@ -305,10 +306,10 @@ export class ReferencePopup extends WithDisposable(LitElement) {
|
||||
}
|
||||
|
||||
private _viewSelector() {
|
||||
// synced doc entry controlled by awareness flag
|
||||
const isSyncedDocEnabled = this.doc.awarenessStore.getFlag(
|
||||
'enable_synced_doc_block'
|
||||
);
|
||||
// synced doc entry controlled by flag
|
||||
const isSyncedDocEnabled = this.doc
|
||||
.get(FeatureFlagService)
|
||||
.getFlag('enable_synced_doc_block');
|
||||
const buttons = [];
|
||||
|
||||
buttons.push({
|
||||
|
||||
Reference in New Issue
Block a user