Skip to content

Commit 004dd44

Browse files
committed
-Applying corrections based on tslint rules
1 parent d2a6cd6 commit 004dd44

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/app/process-page/form/process-form.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ <h1 class="col-12">
88
<ds-scripts-select [submitted]="submitted" [script]="selectedScript" (select)="selectedScript = $event; parameters = undefined"></ds-scripts-select>
99
<ds-process-parameters [initialParams]="parameters" [script]="selectedScript" (updateParameters)="parameters = $event"></ds-process-parameters>
1010
<a [routerLink]="['/processes']" class="btn btn-danger float-start">{{ 'process.new.cancel' | translate }}</a>
11-
<button type="submit" class="btn btn-primary float-end" [disabled]="form.invalid || !isScriptSelected">{{ 'process.new.submit' | translate }}</button>
11+
<button type="submit" class="btn btn-primary float-end" [dsBtnDisabled]="form.invalid || !isScriptSelected">{{ 'process.new.submit' | translate }}</button>
1212
</form>
1313
</div>
1414
<div class="col-12 col-md-6">

src/app/process-page/form/process-form.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import {
3030
TranslateService,
3131
} from '@ngx-translate/core';
3232

33+
import { BtnDisabledDirective } from '../../shared/btn-disabled.directive';
3334
import { getProcessListRoute } from '../process-page-routing.paths';
3435
import { ProcessParametersComponent } from './process-parameters/process-parameters.component';
3536
import { ScriptHelpComponent } from './script-help/script-help.component';
@@ -43,6 +44,7 @@ import { ScriptsSelectComponent } from './scripts-select/scripts-select.componen
4344
templateUrl: './process-form.component.html',
4445
styleUrls: ['./process-form.component.scss'],
4546
imports: [
47+
BtnDisabledDirective,
4648
FormsModule,
4749
ProcessParametersComponent,
4850
RouterLink,

0 commit comments

Comments
 (0)