- {t('Enable AFFiNE Cloud')}?
- {t('Enable AFFiNE Cloud Description')}
- {/* {t('Retain local cached data')} */}
-
- {
- setLoading(true);
- if (!user) {
- await login();
- }
- if (currentWorkspace) {
- const workspace = await dataCenter.enableWorkspaceCloud(
- currentWorkspace
- );
- workspace &&
- router.push(`/workspace/${workspace.id}/setting`);
- toast(t('Enabled success'));
- }
- }}
- >
- {user ? t('Enable') : t('Sign in and Enable')}
-
- {
- onClose();
- }}
- >
- {t('Not now')}
-
-
-
-