mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 15:58:49 +01:00
🎨 Remove Add and Remove buttons for S3/WebDAV cloud sync directory settings https://github.com/siyuan-note/siyuan/issues/13682
This commit is contained in:
parent
47e6e8b74b
commit
6d7feb461f
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
1
app/src/types/config.d.ts
vendored
1
app/src/types/config.d.ts
vendored
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue