mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-26 19:38:48 +01:00
This commit is contained in:
parent
f3869593f0
commit
2ca0cfadde
6 changed files with 19 additions and 24 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import {needLogin, needSubscribe} from "../util/needSubscribe";
|
||||
import {isPaidUser, needSubscribe} from "../util/needSubscribe";
|
||||
import {showMessage} from "../dialog/message";
|
||||
import {fetchPost} from "../util/fetch";
|
||||
import {Dialog} from "../dialog";
|
||||
|
|
@ -147,7 +147,8 @@ export const syncGuide = (app?: App) => {
|
|||
}
|
||||
/// #if MOBILE
|
||||
if ((0 === window.siyuan.config.sync.provider && needSubscribe()) ||
|
||||
(0 !== window.siyuan.config.sync.provider && needLogin())) {
|
||||
(0 !== window.siyuan.config.sync.provider && !isPaidUser())) {
|
||||
showMessage(window.siyuan.languages["_kernel"][214]);
|
||||
return;
|
||||
}
|
||||
/// #else
|
||||
|
|
@ -164,10 +165,8 @@ export const syncGuide = (app?: App) => {
|
|||
}
|
||||
return;
|
||||
}
|
||||
if (0 !== window.siyuan.config.sync.provider && needLogin("") && app) {
|
||||
const dialogSetting = openSetting(app);
|
||||
dialogSetting.element.querySelector('.b3-tab-bar [data-name="account"]').dispatchEvent(new CustomEvent("click"));
|
||||
dialogSetting.element.querySelector('.config__tab-container[data-name="account"]').setAttribute("data-action", "go-repos");
|
||||
if (0 !== window.siyuan.config.sync.provider && !isPaidUser() && app) {
|
||||
showMessage(window.siyuan.languages["_kernel"][214]);
|
||||
return;
|
||||
}
|
||||
/// #endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue