From 40f6314124b35939e3b96e2322a6baba3fece0a6 Mon Sep 17 00:00:00 2001 From: sanjayk03-dev Date: Tue, 4 Jun 2024 02:58:57 +0530 Subject: [PATCH] fixing a disabling --- src/pug/templates/macros.pug | 4 ++-- src/stylus/style.styl | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/pug/templates/macros.pug b/src/pug/templates/macros.pug index 7b766f3..459c62f 100644 --- a/src/pug/templates/macros.pug +++ b/src/pug/templates/macros.pug @@ -73,8 +73,8 @@ script#macros-template(type="text/x-template") .fa.fa-trash |  Yes - a(download, title="Download Macros", :href="download_macros_url", style="text-decoration: none;", :disabled="!can_download_macros") - button.config-button.button-blue(style="width:160px;", :disabled="!can_download_macros") Download Macros + a(download, title="Download Macros", :href="can_download_macros? download_macros_url : null", style="text-decoration: none;") + button.config-button.button-blue(style="width:160px;") Download Macros .warning-box p diff --git a/src/stylus/style.styl b/src/stylus/style.styl index fa962a4..e47a6de 100644 --- a/src/stylus/style.styl +++ b/src/stylus/style.styl @@ -685,11 +685,6 @@ span.unit #macros width 104% - a.disabled - color gray - text-decoration none - pointer-events none - .warning-box display flex background-color #F3FF00