Преглед изворни кода

remove duplicate button from loan add new dialog

tags/2.037
Patrick Sun пре 5 година
родитељ
комит
03386a6eb4
3 измењених фајлова са 8 додато и 4 уклоњено
  1. +2
    -0
      src/app/loan-edit/dist/loan-edit.component.js
  2. +4
    -4
      src/app/loan-edit/loan-edit.component.html
  3. +2
    -0
      src/app/loan-edit/loan-edit.component.ts

+ 2
- 0
src/app/loan-edit/dist/loan-edit.component.js Прегледај датотеку

}; };
LoanEditComponent.prototype.submitForm = function () { LoanEditComponent.prototype.submitForm = function () {
this.registerForm.markAllAsTouched(); this.registerForm.markAllAsTouched();
//this.action('yes');
}; };
LoanEditComponent.prototype.clearForm = function () { LoanEditComponent.prototype.clearForm = function () {
this.registerForm.reset(); this.registerForm.reset();
//this.action('no');
}; };
LoanEditComponent = __decorate([ LoanEditComponent = __decorate([
core_1.Component({ core_1.Component({

+ 4
- 4
src/app/loan-edit/loan-edit.component.html Прегледај датотеку

<kendo-formhint>Date Settled</kendo-formhint> <kendo-formhint>Date Settled</kendo-formhint>
</kendo-formfield> </kendo-formfield>


<div class="k-form-buttons">
<!-- <div class="k-form-buttons">
<button class="k-button k-primary" <button class="k-button k-primary"
(click)="submitForm()">Add New </button> (click)="submitForm()">Add New </button>
<button class="k-button" (click)="clearForm()">Clear</button> <button class="k-button" (click)="clearForm()">Clear</button>
</div>
</div> -->
</fieldset> </fieldset>
</form> </form>
</div> </div>
</div> </div>


<kendo-dialog-actions> <kendo-dialog-actions>
<button kendoButton (click)="action('no')">No</button>
<button kendoButton (click)="action('yes')" primary="true">Yes</button>
<button kendoButton (click)="clearForm()">Clear</button>
<button kendoButton (click)="submitForm()" primary="true">Add New</button>
</kendo-dialog-actions> </kendo-dialog-actions>
</kendo-dialog> </kendo-dialog>



+ 2
- 0
src/app/loan-edit/loan-edit.component.ts Прегледај датотеку



public submitForm(): void { public submitForm(): void {
this.registerForm.markAllAsTouched(); this.registerForm.markAllAsTouched();
//this.action('yes');
} }


public clearForm(): void { public clearForm(): void {
this.registerForm.reset(); this.registerForm.reset();
//this.action('no');
} }
public listClientNames: Array<{ text: string, value: number }> = [ public listClientNames: Array<{ text: string, value: number }> = [

Loading…
Откажи
Сачувај