Jelajahi Sumber

Hide download button for Webcal collections

MatthewHana 1 tahun lalu
induk
melakukan
6f5ee56c2d
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  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");