Skip to content

Commit

Permalink
🎨 fix #7610
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Mar 8, 2023
1 parent bbd1333 commit faf08d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions app/src/card/openCard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {Constants} from "../constants";
import {disabledProtyle, onGet} from "../protyle/util/onGet";
import {hasClosestByClassName} from "../protyle/util/hasClosest";
import {hideElements} from "../protyle/ui/hideElements";
import {needSubscribe} from "../util/needSubscribe";

export const openCard = () => {
const exit = window.siyuan.dialogs.find(item => {
Expand Down Expand Up @@ -185,6 +186,12 @@ export const openCardByData = (cardsData: ICard[], html = "") => {
cardID: blocks[index].cardID,
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++;
editor.protyle.element.classList.add("card__block--hide");
if (index > blocks.length - 1) {
Expand Down
2 changes: 1 addition & 1 deletion app/src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ declare interface IConfig {
stat: string
interval: number
cloudName: string
provider: number
provider: number // 0 官方同步, 2 S3, 3 WebDAV
s3: {
endpoint: string
pathStyle: boolean
Expand Down

0 comments on commit faf08d6

Please sign in to comment.