fix(ui): proper display of total files

This commit is contained in:
Oleh Lustenko 2022-09-10 08:27:54 +03:00
parent 79dc4ae62e
commit c2a56a5ea3
2 changed files with 4 additions and 3 deletions

View File

@ -219,9 +219,9 @@ export class BulkRenameSettingsTab extends PluginSettingTab {
}
renderFilesAndPreview = () => {
this.filesAndPreview = new Setting(this.containerEl)
.setName('Files within the folder')
.setDesc(`Total Files: ${this.plugin.settings.fileNames.length}`);
this.filesAndPreview = new Setting(this.containerEl).setName(
'Files within the folder',
);
this.filesAndPreview.controlEl.addClass('bulk_rename_preview');
this.calculateFileNames();

View File

@ -14,6 +14,7 @@ export const renderPreviewFiles = (
let replacedPreviewTextArea: HTMLTextAreaElement;
return setting
.setDesc(`Total Files: ${plugin.settings.fileNames.length}`)
.clear()
.addTextArea((text) => {
text.setPlaceholder('Here you will see files under folder location');