Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export enum Category {
- NotDefined,
- RealTime,
- BackData,
- Testing,
- Simulated
- }
- Type 'Category.Testing' is not comparable to type 'Category.BackData'
- import { Category } from '@app/model/Enums.ts';
- public async SubmitForm(): Promise<Boolean> {
- var category: Category;
- category = Category.BackData;
- switch (category) {
- case (Category.Testing): {
- this.workRequest.RangeStart == 0.1;
- this.workRequest.RangeEnd == 0.3;
- this.workRequest.RangeStep = 0.1;
- }
- default: {
- this.workRequest.RangeStart == 0.00;
- this.workRequest.RangeEnd == 1.00;
- this.workRequest.RangeStep = 0.01;
- }
- }
- if (category == Category.Testing) {
- this.workRequest.RangeStart == 0.1;
- this.workRequest.RangeEnd == 0.3;
- this.workRequest.RangeStep = 0.1;
- } else {
- this.workRequest.RangeStart == 0.00;
- this.workRequest.RangeEnd == 1.00;
- this.workRequest.RangeStep = 0.01;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement