shumadrid_obsidian-git-chan.../src/settings/ui/FileChangesNotificationThreshold.ts
2025-04-08 03:39:44 +02:00

17 lines
517 B
TypeScript

import { SettingComponent } from 'settings/components/setting.ts';
export class FileChangesNotificationThreshold extends SettingComponent {
public display(): void {
this.createSetting()
.setName('Custom threshold for file changes alert')
.addText((text) => {
this.settingTab.bind(text, 'filesChangesWarningThreshold', {
shouldShowValidationMessage: false
});
text.setDisabled(this.disabled);
// This.restrictToPositiveIntegerInput(text);
});
}
}