Skip to content

Commit

Permalink
Merge pull request #32 from TDanilV16/emulation_button
Browse files Browse the repository at this point in the history
Emulation button disabled on click
  • Loading branch information
artamaney authored Jan 12, 2024
2 parents 7fc75bc + f420b08 commit 5305ae6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions overhave/admin/templates/emulation_run_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@

{% macro render_go_button(model) %}
<form action="/emulations/{{ model.port }}" target="_blank">
<button class="button default-btn">Go to emulation</button>
<button class="button default-btn" id="goToEmulationBtn"onclick="disableButton()">Go to emulation</button>
<script>
function disableButton() {
let myButton = document.getElementById("goToEmulationBtn");
myButton.disabled = true;
}
</script>
</form>
{% endmacro %}
{% endmacro %}

{% macro render_edit_button(model) %}
<a href="{{ url_for('emulation.edit_view', id=model.emulation_id) }}">
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/publication/gitlab/test_tokenizer_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


class TestTokenizerClient:
"""Tests for :class:`TokenizerClient`."""
"""Tests for :class:TokenizerClient."""

@pytest.mark.parametrize(
("initiator", "remote_key", "remote_key_name"),
Expand Down
Empty file.

0 comments on commit 5305ae6

Please sign in to comment.