diff --git a/libs/components/src/async-actions/bit-submit.directive.ts b/libs/components/src/async-actions/bit-submit.directive.ts index 334696576b..1fee5283bd 100644 --- a/libs/components/src/async-actions/bit-submit.directive.ts +++ b/libs/components/src/async-actions/bit-submit.directive.ts @@ -18,7 +18,6 @@ export class BitSubmitDirective implements OnInit, OnDestroy { private _disabled$ = new BehaviorSubject(false); @Input("bitSubmit") protected handler: FunctionReturningAwaitable; - @Input("disableFormOnLoading") protected disableFormOnLoading = false; readonly loading$ = this._loading$.asObservable(); readonly disabled$ = this._disabled$.asObservable(); diff --git a/libs/components/src/async-actions/in-forms.stories.ts b/libs/components/src/async-actions/in-forms.stories.ts index ce0528cc04..b492032df1 100644 --- a/libs/components/src/async-actions/in-forms.stories.ts +++ b/libs/components/src/async-actions/in-forms.stories.ts @@ -1,4 +1,4 @@ -import { Component, Input } from "@angular/core"; +import { Component } from "@angular/core"; import { FormsModule, ReactiveFormsModule, Validators, FormBuilder } from "@angular/forms"; import { action } from "@storybook/addon-actions"; import { Meta, moduleMetadata, Story } from "@storybook/angular"; @@ -18,7 +18,7 @@ import { BitSubmitDirective } from "./bit-submit.directive"; import { BitFormButtonDirective } from "./form-button.directive"; const template = ` -
+ Name @@ -45,8 +45,6 @@ class PromiseExampleComponent { email: ["", [Validators.required, Validators.email]], }); - @Input() disableFormOnLoading: boolean; - constructor(private formBuilder: FormBuilder) {} submit = async () => { @@ -78,8 +76,6 @@ class ObservableExampleComponent { email: ["", [Validators.required, Validators.email]], }); - @Input() disableFormOnLoading: boolean; - constructor(private formBuilder: FormBuilder) {} submit = () => { @@ -136,21 +132,18 @@ export default { ], }), ], - args: { - disableFormOnLoading: false, - }, } as Meta; const PromiseTemplate: Story = (args: PromiseExampleComponent) => ({ props: args, - template: ``, + template: ``, }); export const UsingPromise = PromiseTemplate.bind({}); const ObservableTemplate: Story = (args: PromiseExampleComponent) => ({ props: args, - template: ``, + template: ``, }); export const UsingObservable = ObservableTemplate.bind({});