Skip to content
This repository was archived by the owner on Jul 17, 2025. It is now read-only.

Commit c47aaa1

Browse files
authored
rekey/clr-update (#334)
* rekey/clr-update (#333) * fix sonarcloud bug and security hotspots
1 parent d84c472 commit c47aaa1

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

annotation-app/src/app/components/projects/create-project.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,6 +1183,7 @@ <h3>New Annotation Project</h3>
11831183
<a
11841184
href="https://modal-python.readthedocs.io/en/latest/"
11851185
target="_blank"
1186+
rel="noopener"
11861187
role="tooltip"
11871188
aria-haspopup="true"
11881189
class="tooltip tooltip-right"

annotation-app/src/app/components/projects/set-data/set-data.component.html

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,24 +110,22 @@
110110
<input
111111
type="checkbox"
112112
clrCheckbox
113-
name="options"
113+
name="checkbox1"
114114
[ngClass]="{
115115
'disabled-checkbox': column.checkboxDisabled
116116
}"
117117
[disabled]="column.checkboxDisabled"
118-
[(ngModel)]="column.labelChecked"
119-
(ngModelChange)="changeCheckbox(column.name, 'labelChecked')"
120-
[ngModelOptions]="{ standalone: true }"
118+
[checked]="column.labelChecked"
119+
(change)="changeCheckbox(column.name, 'labelChecked')"
121120
/>
122121
</clr-dg-cell>
123122
<clr-dg-cell class="ellipsis-datagrid">
124123
<input
125124
type="checkbox"
126125
clrCheckbox
127-
name="options"
128-
[(ngModel)]="column.helptextChecked"
129-
(ngModelChange)="changeCheckbox(column.name, 'helptextChecked')"
130-
[ngModelOptions]="{ standalone: true }"
126+
name="checkbox2"
127+
[checked]="column.helptextChecked"
128+
(change)="changeCheckbox(column.name, 'helptextChecked')"
131129
/>
132130
</clr-dg-cell>
133131
</clr-dg-row>

annotation-app/src/app/components/projects/set-data/set-data.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class SetDataComponent implements OnInit, OnChanges {
112112
let index = _.findIndex(this.checkboxColumns, function (o) {
113113
return o.name === data;
114114
});
115-
!this.checkboxColumns[index][from];
115+
this.checkboxColumns[index][from] = !this.checkboxColumns[index][from];
116116
}
117117

118118
goBack(_e): void {

annotation-app/src/app/services/common/common.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ SPDX-License-Identifier: Apache-2.0
44
*/
55

66
import { Injectable } from '@angular/core';
7-
import { resolve } from 'core-js/fn/promise';
87
import * as _ from 'lodash';
98
import { AvaService } from '../ava.service';
109

0 commit comments

Comments
 (0)