Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-SunbirdEd-portal-old
Commits
9fca742f
Commit
9fca742f
authored
2 years ago
by
5Amogh
Browse files
Options
Download
Patches
Plain Diff
Negative and Zero input value
parent
0714e9f9
master
dependabot/npm_and_yarn/src/app/client/decode-uri-component-0.2.2
dependabot/npm_and_yarn/src/app/decode-uri-component-0.2.2
dependabot/npm_and_yarn/src/app/express-4.17.3
dependabot/npm_and_yarn/src/app/jsonwebtoken-9.0.0
dependabot/npm_and_yarn/src/desktop/OpenRAP/decode-uri-component-0.2.2
dependabot/npm_and_yarn/src/desktop/OpenRAP/express-4.17.3
dependabot/npm_and_yarn/src/desktop/OpenRAP/jsonwebtoken-9.0.0
dependabot/npm_and_yarn/src/desktop/OpenRAP/qs-6.5.3
dependabot/npm_and_yarn/src/desktop/decode-uri-component-0.2.2
dependabot/npm_and_yarn/src/desktop/express-4.17.3
dependabot/npm_and_yarn/src/desktop/jsonwebtoken-9.0.0
dependabot/npm_and_yarn/src/desktop/qs-6.10.3
filters_5.1.1
gcp_test
release-5.0.0
release-5.0.0.1
release-5.0.0.2
release-5.0.0.3
release-5.0.1
release-5.0.2
release-5.1.0
release-5.1.1
sharathkashyap-patch-1
Tags unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/client/src/app/modules/program-dashboard/components/program-datasets/program-datasets.component.ts
+7
-3
...components/program-datasets/program-datasets.component.ts
with
7 additions
and
3 deletions
+7
-3
src/app/client/src/app/modules/program-dashboard/components/program-datasets/program-datasets.component.ts
+
7
−
3
View file @
9fca742f
...
...
@@ -13,7 +13,7 @@ import * as moment from 'moment';
import
html2canvas
from
'
html2canvas
'
;
import
*
as
jspdf
from
'
jspdf
'
;
const
PRE_DEFINED_PARAMETERS
=
[
'
$slug
'
,
'
hawk-eye
'
];
export
interface
c
onfigFilter
{
export
interface
C
onfigFilter
{
label
:
string
,
controlType
:
string
,
reference
:
string
,
...
...
@@ -100,7 +100,7 @@ export class DatasetsComponent implements OnInit, OnDestroy {
maxStartDate
:
any
;
//Start date - has to be one day less than end date
displayFilters
:
any
=
{};
loadash
=
_
;
pdFilters
:
c
onfigFilter
[]
=
[];
pdFilters
:
C
onfigFilter
[]
=
[];
configuredFilters
:
any
=
{}
constructor
(
activatedRoute
:
ActivatedRoute
,
...
...
@@ -571,7 +571,11 @@ export class DatasetsComponent implements OnInit, OnDestroy {
pdFilterChanged
(
$event
){
const
[
reference
,
value
]
=
[
Object
.
keys
(
$event
),
Object
.
values
(
$event
)]
;
this
.
configuredFilters
[
reference
[
0
]]
=
[
0
,
null
].
includes
(
value
[
0
]
as
number
)
?
0
:
value
[
0
]
as
number
-
1
;
if
([
0
,
null
].
includes
(
value
[
0
]
as
number
)
||
value
[
0
]
<
0
){
this
.
configuredFilters
[
reference
[
0
]]
=
undefined
;
}
else
{
this
.
configuredFilters
[
reference
[
0
]]
=
value
[
0
]
as
number
-
1
;
}
}
addFilters
()
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets