Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HUB Terra
SMS
Frontend
Commits
9a791e1f
Verified
Commit
9a791e1f
authored
3 years ago
by
Marc Hanisch
Browse files
Options
Downloads
Patches
Plain Diff
implements IDateCompareable
parent
11a07aea
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!104
Load and save Generic Device Actions
,
!93
Actions UI for devices
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
models/GenericAction.ts
+6
-1
6 additions, 1 deletion
models/GenericAction.ts
with
6 additions
and
1 deletion
models/GenericAction.ts
+
6
−
1
View file @
9a791e1f
...
...
@@ -33,6 +33,7 @@ import { DateTime } from 'luxon'
import
{
Attachment
}
from
'
@/models/Attachment
'
import
{
Contact
}
from
'
@/models/Contact
'
import
{
IAction
}
from
'
@/models/Action
'
import
{
IDateCompareable
}
from
'
@/modelUtils/Compareables
'
export
interface
IGenericAction
extends
IAction
{
actionTypeName
:
string
...
...
@@ -43,7 +44,7 @@ export interface IGenericAction extends IAction {
attachments
:
Attachment
[]
}
export
class
GenericAction
implements
IGenericAction
{
export
class
GenericAction
implements
IGenericAction
,
IDateCompareable
{
private
_id
:
string
|
null
=
null
private
_description
:
string
=
''
private
_actionTypeName
:
string
=
''
...
...
@@ -150,4 +151,8 @@ export class GenericAction implements IGenericAction {
get
isGenericAction
():
boolean
{
return
true
}
get
date
():
DateTime
|
null
{
return
this
.
beginDate
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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