Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable save and cancel buttons in sample/analysis workflows #1347 #1353

Merged
merged 1 commit into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -447,14 +447,14 @@ <h5 class="analysis-areas-annotation-step-widget-title pad-top">{% trans 'Annota
<div class="workbench-button-panel">
<button
class="btn btn-success"
data-bind="click: $data.saveAnalysisAreaTile, css: {disabled: !$data.tileDirty()}""
data-bind="click: $data.saveAnalysisAreaTile, css: {disabled: !$data.tileDirty()}, attr: {disabled: !$data.tileDirty()}"
>
<i class="ion-android-cloud-done"></i>
<span>{% trans 'Save' %}</span>
</button>
<button
class="btn btn-danger"
data-bind="click: $data.resetAnalysisAreasTile, css: {disabled: !$data.tileDirty()}"
data-bind="click: $data.resetAnalysisAreasTile, css: {disabled: !$data.tileDirty()}, attr: {disabled: !$data.tileDirty()}"
>
<i class="ion-android-cancel}"></i>
<span>{% trans 'Cancel' %}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,14 +418,14 @@ <h5 class="analysis-areas-annotation-step-widget-title">{% trans 'Motivation for
<div class="workbench-button-panel">
<button
class="btn btn-success"
data-bind="click: $data.saveSampleLocationTile, css: {disabled: !$data.tileDirty()}"
data-bind="click: $data.saveSampleLocationTile, css: {disabled: !$data.tileDirty()}, attr: {disabled: !$data.tileDirty()}"
>
<i class="ion-android-cloud-done"></i>
<span style="padding-left: 4px">{% trans 'Save' %}</span>
</button>
<button
class="btn btn-danger"
data-bind="click: $data.resetSampleLocationTile, css: {disabled: !$data.tileDirty()}"
data-bind="click: $data.resetSampleLocationTile, css: {disabled: !$data.tileDirty()}, attr: {disabled: !$data.tileDirty()}"
>
<i class="ion-android-cancel"></i>
<span style="padding-left: 4px">{% trans 'Cancel' %}</span>
Expand Down
Loading