import {FormBuilder, Validators} from '@angular/forms';
import {CustomValidators} from 'ng2-validation';
import {BsModalService} from "ngx-bootstrap/modal";
import {AppComponent} from "../../../../app.component";
import {FrameRequest} from "../../../../shared/frame/frame-request";

import * as _ from 'lodash';
import {FlexTableComponent} from '../../../../shared/common/FlexTable.component';
import {OnInit, Component} from '@angular/core';
import {FrameAbstractComponent} from "../../../frame/FrameAbstractComponent";

@Component({
  selector: 'sys-app-update',
  templateUrl: './sys-app-update.component.html',
  styleUrls: ['./sys-app-update.component.scss']
})
export class SysAppUpdateComponent extends FrameAbstractComponent {


  QUERY_URL = "sys/appupdate/page.htm";

  constructor(fb: FormBuilder) {
    super();
    this.valForm = fb.group({
      'version': [null, Validators.compose([Validators.required, Validators.maxLength(20)])],
      'description': [null, Validators.compose([Validators.required, Validators.maxLength(120)])],
      'must_update': [null, Validators.compose([Validators.required])],
      'apkurl': [null, Validators.compose([Validators.required, Validators.maxLength(255)])],
    });
  }







}


