Skip to content

Commit

Permalink
Remove "Clear" button from allele dialog
Browse files Browse the repository at this point in the history
Refs #2758
  • Loading branch information
kimrutherford committed Mar 18, 2024
1 parent a7b4f11 commit 630e502
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
10 changes: 0 additions & 10 deletions root/static/js/canto-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -4300,16 +4300,6 @@ function alleleQCCheckAllele($http, alleleQCUrl, geneSystematicId, alleleDescrip
processSynonyms();
};

$scope.clearExisting = function() {
$scope.alleleData.external_uniquename = undefined;
$scope.alleleData.existingSynonyms = [];
$scope.alleleData.newSynonyms = [];
$scope.alleleData.description = undefined;
$scope.alleleData.type = undefined;
$scope.alleleData.name = '';
$scope.alleleData.display_name = undefined;
};

$scope.descriptionChanged = function() {
$scope.descriptionNeedsChecking = false;
$scope.descriptionState = 'unset';
Expand Down
4 changes: 0 additions & 4 deletions root/static/ng_templates/allele_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,6 @@ <h4 class="modal-title">
</div>

<div class="modal-footer">
<button class="btn btn-primary curs-allele-edit-clear-name" ng-click="clearExisting()"
ng-if="!!alleleData.external_uniquename"
title="Clear dialog to enter new details or to find a different allele from the {{databaseName}} database">Clear</button>

<button class="btn btn-warning curs-allele-edit-cancel" ng-click="cancel()"
title="Discard changes and close this dialog"
ng-disabled="okInProgress">Cancel</button>
Expand Down

0 comments on commit 630e502

Please sign in to comment.