This commit is contained in:
Vanessa 2023-03-08 22:39:09 +08:00
parent bbd1333f93
commit faf08d6c60
2 changed files with 8 additions and 1 deletions

View file

@ -6,6 +6,7 @@ import {Constants} from "../constants";
import {disabledProtyle, onGet} from "../protyle/util/onGet"; import {disabledProtyle, onGet} from "../protyle/util/onGet";
import {hasClosestByClassName} from "../protyle/util/hasClosest"; import {hasClosestByClassName} from "../protyle/util/hasClosest";
import {hideElements} from "../protyle/ui/hideElements"; import {hideElements} from "../protyle/ui/hideElements";
import {needSubscribe} from "../util/needSubscribe";
export const openCard = () => { export const openCard = () => {
const exit = window.siyuan.dialogs.find(item => { const exit = window.siyuan.dialogs.find(item => {
@ -185,6 +186,12 @@ export const openCardByData = (cardsData: ICard[], html = "") => {
cardID: blocks[index].cardID, cardID: blocks[index].cardID,
rating: parseInt(type) rating: parseInt(type)
}, () => { }, () => {
/// #if MOBILE
if ((0 !== window.siyuan.config.sync.provider || (0 === window.siyuan.config.sync.provider && !needSubscribe(""))) &&
window.siyuan.config.repo.key && window.siyuan.config.sync.enabled) {
document.getElementById("toolbarSync").classList.remove("fn__none");
}
/// #endif
index++; index++;
editor.protyle.element.classList.add("card__block--hide"); editor.protyle.element.classList.add("card__block--hide");
if (index > blocks.length - 1) { if (index > blocks.length - 1) {

View file

@ -394,7 +394,7 @@ declare interface IConfig {
stat: string stat: string
interval: number interval: number
cloudName: string cloudName: string
provider: number provider: number // 0 官方同步, 2 S3 3 WebDAV
s3: { s3: {
endpoint: string endpoint: string
pathStyle: boolean pathStyle: boolean