Explorar o código

Merge pull request #1421 from MatthewHana/v3.2-devel

WEB UI: Hide download button for Webcal collections [SMALL]
Peter Bieringer hai 1 ano
pai
achega
48910bf3a9
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      radicale/web/internal_data/fn.js

+ 3 - 0
radicale/web/internal_data/fn.js

@@ -742,6 +742,9 @@ function CollectionsScene(user, password, collection, onerror) {
             let href = SERVER + collection.href;
             url_form.value = href;
             download_btn.href = href;
+            if(collection.type == CollectionType.WEBCAL){
+                download_btn.parentElement.classList.add("hidden");
+            }
             delete_btn.onclick = function() {return ondelete(collection);};
             edit_btn.onclick = function() {return onedit(collection);};
             node.classList.remove("hidden");