From 3817c882c1726baab885d0a2926605b774c88782 Mon Sep 17 00:00:00 2001 From: David Carley Date: Mon, 15 Mar 2021 15:36:30 -0700 Subject: [PATCH] The download button wasn't disabled when no file --- src/pug/templates/control-view.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pug/templates/control-view.pug b/src/pug/templates/control-view.pug index 12f3080..a2e1d85 100644 --- a/src/pug/templates/control-view.pug +++ b/src/pug/templates/control-view.pug @@ -419,7 +419,7 @@ script#control-view-template(type="text/x-template") a(:disabled="!state.selected", download, :href="'/api/file/' + state.selected", title="Download the selected GCode program.") - button.pure-button(style="height:100px;width:100px") + button.pure-button(:disabled="!state.selected", style="height:100px;width:100px") .fa.fa-download button.pure-button(title="Delete current GCode program.",