Merge pull request #40 from dacarley/download-button-enable-disable

The download button wasn't disabled when no file
This commit is contained in:
OneFinityCNC
2021-03-17 00:35:25 -04:00
committed by GitHub

View File

@@ -419,7 +419,7 @@ script#control-view-template(type="text/x-template")
a(:disabled="!state.selected", download, a(:disabled="!state.selected", download,
:href="'/api/file/' + state.selected", :href="'/api/file/' + state.selected",
title="Download the selected GCode program.") 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 .fa.fa-download
button.pure-button(title="Delete current GCode program.", button.pure-button(title="Delete current GCode program.",