-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Json forms support #845
Conversation
… into feature/json-forms
-applied json editor in create task form
… form - remove unused import
… into feature/json-forms
@@ -44,13 +44,13 @@ export class DurationPickerComponent implements ControlValueAccessor { | |||
@Input() public allowUnlimited: boolean = true; | |||
|
|||
protected _propagateChange: (value: any) => void = null; | |||
protected _duration: string; | |||
protected _duration: any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the type of this now? a duration? should set the type instead of any
* otherwise next smaller unit will be checked until last unit. | ||
*/ | ||
private _setValueAndUnit() { | ||
if (this.duration) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you do a guard check here instead of a big nested
app/models/dtos/task-create.dto.ts
Outdated
|
||
@DtoAttr() | ||
public constraints?: ConstraintDto; | ||
@DtoAttr() public constraints?: ConstraintDto; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make constrains a dto class not just interface
@@ -2,6 +2,9 @@ import * as moment from "moment"; | |||
|
|||
export class ProxyUtil { | |||
public static decoratePool(pool: any): any { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should be able to remove that completely now
@@ -7,6 +7,7 @@ import { NotificationService } from "app/components/base/notifications"; | |||
import { SidebarRef } from "app/components/base/sidebar"; | |||
import { JobCreateBasicDialogComponent } from "app/components/job/action"; | |||
import { Pool, ServerError } from "app/models"; | |||
// import { JobCreateDto } from "app/models/dtos"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove?
-update duration picker duration type to moment.Duration and related update in job/task
fix #844