Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
james-strauss-uwa committed Feb 2, 2024
1 parent 50807d9 commit c32ad43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/Eagle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2995,12 +2995,12 @@ export class Eagle {
}

// TODO: requestMode param here is spelt incorrectly, should be an enum?
deleteSelection = (requstMode:any, suppressUserConfirmationRequest: boolean, deleteChildren: boolean) : void => {
deleteSelection = (requestMode:any, suppressUserConfirmationRequest: boolean, deleteChildren: boolean) : void => {
let mode: string; // TODO: should be an enum?
let data: any = []; // TODO: declare type

// if no objects selected, warn user
if (requstMode === ''){
if (requestMode === ''){
data = this.selectedObjects()
mode = 'normal'
}else{
Expand Down Expand Up @@ -3744,7 +3744,7 @@ export class Eagle {
continue;
}

//this index only counts up if the above doesnt filter out the choice
// this index only counts up if the above doesn't filter out the choice
validChoiceIndex++

// if this node is already the parent, note its index, so that we can preselect this parent node in the modal dialog
Expand Down Expand Up @@ -4783,13 +4783,13 @@ $( document ).ready(function() {
$("#editFieldModal textarea").attr('style','')
$("#errorsModalAccordion").parent().parent().attr('style','')

//reset parameter table selecction
//reset parameter table selection
ParameterTable.resetSelection()
});

$('.modal').on('shown.bs.modal',function(){
// modal draggables
//the any type is required so we dont have an error when building. at runtime on eagle this actually functions without it.
// the any type is required so we don't have an error when building. at runtime on eagle this actually functions without it.
(<any>$('.modal-dialog')).draggable({
handle: ".modal-header"
});
Expand Down
1 change: 0 additions & 1 deletion src/Edge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
*/

import { Category } from './Category';
import { CategoryData } from './CategoryData';
import { Daliuge } from './Daliuge';
import { Eagle } from './Eagle';
import { LogicalGraph } from './LogicalGraph';
Expand Down

0 comments on commit c32ad43

Please sign in to comment.