Skip to content

Commit 0c7c406

Browse files
committed
added message on save click if nothing changed in the form
Signed-off-by: Mohd. Shariq <[email protected]>
1 parent ea6bab0 commit 0c7c406

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app/components/core/north/north-task-modal/north-task-modal.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,8 @@ export class NorthTaskModalComponent implements OnInit, OnChanges {
545545
}
546546

547547
save() {
548+
console.log('save');
549+
548550
this.saveScheduleFields(this.form);
549551
if (!isEmpty(this.changedConfig) && this.pluginConfiguration?.name) {
550552
this.updateConfiguration(this.pluginConfiguration?.name, this.changedConfig, 'plugin-config');
@@ -580,6 +582,7 @@ export class NorthTaskModalComponent implements OnInit, OnChanges {
580582
this.apiCallsStack = [];
581583
});
582584
} else {
585+
this.toast.info('Nothing to save', 5000);
583586
this.toggleModal(false);
584587
}
585588
}

0 commit comments

Comments
 (0)