|
@@ -6,7 +6,7 @@ import {Constants} from "../constants";
|
|
import {onGet} from "../protyle/util/onGet";
|
|
import {onGet} from "../protyle/util/onGet";
|
|
import {hasClosestByAttribute, hasClosestByClassName} from "../protyle/util/hasClosest";
|
|
import {hasClosestByAttribute, hasClosestByClassName} from "../protyle/util/hasClosest";
|
|
import {hideElements} from "../protyle/ui/hideElements";
|
|
import {hideElements} from "../protyle/ui/hideElements";
|
|
-import {needLogin, needSubscribe} from "../util/needSubscribe";
|
|
|
|
|
|
+import {isPaidUser, needSubscribe} from "../util/needSubscribe";
|
|
import {fullscreen} from "../protyle/breadcrumb/action";
|
|
import {fullscreen} from "../protyle/breadcrumb/action";
|
|
import {MenuItem} from "../menus/Menu";
|
|
import {MenuItem} from "../menus/Menu";
|
|
import {escapeHtml} from "../util/escape";
|
|
import {escapeHtml} from "../util/escape";
|
|
@@ -394,7 +394,7 @@ export const bindCardEvent = (options: {
|
|
}, () => {
|
|
}, () => {
|
|
/// #if MOBILE
|
|
/// #if MOBILE
|
|
if (type !== "-3" &&
|
|
if (type !== "-3" &&
|
|
- ((0 !== window.siyuan.config.sync.provider && !needLogin("")) ||
|
|
|
|
|
|
+ ((0 !== window.siyuan.config.sync.provider && isPaidUser()) ||
|
|
(0 === window.siyuan.config.sync.provider && !needSubscribe(""))) &&
|
|
(0 === window.siyuan.config.sync.provider && !needSubscribe(""))) &&
|
|
window.siyuan.config.repo.key && window.siyuan.config.sync.enabled) {
|
|
window.siyuan.config.repo.key && window.siyuan.config.sync.enabled) {
|
|
document.getElementById("toolbarSync").classList.remove("fn__none");
|
|
document.getElementById("toolbarSync").classList.remove("fn__none");
|