Skip to content

Commit

Permalink
Fix warning in HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
nqhoan-axonivy committed Nov 29, 2024
1 parent 93082c0 commit 2629ddb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@
<p:commandButton value="Upload"
actionListener="#{logic.fileUpload}" ajax="false"
id="fileUploadButton" icon="fa-solid fa-cloud-upload"
disabled="#{empty data.translate}" />
disabled="#{data.translate eq null}" />
<br /> <br />
<h:outputText value="No file to translate? Try our example" />
<br />
<p:commandButton value="Example file"
actionListener="#{logic.fileUploadTemplate}" ajax="false"
update="form" id="templateButton" icon="fa-solid fa-cloud-upload"
disabled="#{empty data.translate}" />
disabled="#{data.translate eq null}" />

<a href="#{ivy.html.fileref(data.exampleFile)}">Example file</a> <br />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</div>
<div class="command-btns" style="justify-content: left;">
<p:commandButton id="translate" actionListener="#{logic.translate}"
value="translate" update="form" icon="si si-chat-translate" disabled="#{empty data.translate}" />
value="translate" update="form" icon="si si-chat-translate" disabled="#{data.translate eq null}" />
</div>
</h:form>
</ui:define>
Expand Down

0 comments on commit 2629ddb

Please sign in to comment.