Skip to content

Commit

Permalink
🎨 Remove Add and Remove buttons for S3/WebDAV cloud sync director…
Browse files Browse the repository at this point in the history
…y settings #13682
  • Loading branch information
88250 committed Jan 1, 2025
1 parent 47e6e8b commit 6d7feb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/sync/syncGuide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export const getSyncCloudList = (cloudPanelElement: Element, reload = false, cb?
<span class="ft__on-surface">${item.hSize}</span>
<span class="b3-list-item__meta">${item.updated}</span>
<span class="fn__flex-1 fn__space"></span>
<span data-type="removeCloud" class="b3-tooltips b3-tooltips__w b3-list-item__action" aria-label="${window.siyuan.languages.delete}">
<span data-type="removeCloud" class="b3-tooltips b3-tooltips__w b3-list-item__action${(window.siyuan.config.sync.provider === 2 || window.siyuan.config.sync.provider === 3) ? " fn__none":""}" aria-label="${window.siyuan.languages.delete}">
<svg><use xlink:href="#iconTrashcan"></use></svg>
</span></li>`;
/// #endif
Expand All @@ -133,7 +133,7 @@ export const getSyncCloudList = (cloudPanelElement: Element, reload = false, cb?
<div class="fn__hr"></div>
<div class="fn__flex">
<div class="fn__flex-1"></div>
<button class="b3-button b3-button--outline" data-type="addCloud"><svg><use xlink:href="#iconAdd"></use></svg>${window.siyuan.languages.addAttr}</button>
<button class="b3-button b3-button--outline${(window.siyuan.config.sync.provider === 2 || window.siyuan.config.sync.provider === 3) ? " fn__none":""}" data-type="addCloud"><svg><use xlink:href="#iconAdd"></use></svg>${window.siyuan.languages.addAttr}</button>
</div>`;
}
cloudPanelElement.innerHTML = syncListHTML;
Expand Down
1 change: 1 addition & 0 deletions app/src/types/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1364,6 +1364,7 @@ declare namespace Config {
* - `0`: SiYuan official cloud storage service
* - `2`: Object storage service compatible with S3 protocol
* - `3`: Network storage service using WebDAV protocol
* - `4`: Local file system
*/
provider: number;
s3: ISyncS3;
Expand Down

0 comments on commit 6d7feb4

Please sign in to comment.