0
0
Fork 0

Primary code functionality

This commit is contained in:
Oliver Akins 2022-05-26 23:18:53 -06:00
parent 4a224bd6a8
commit 29d25dc6e7
No known key found for this signature in database
GPG key ID: 3C2014AF9457AF99
8 changed files with 282 additions and 76 deletions

View file

@ -0,0 +1,21 @@
import { Setting } from "obsidian";
import FileHider from "../main";
import { FileModal } from "../modals/FileModal";
export class ManageHiddenFiles {
public static create(plugin: FileHider, container: HTMLElement) {
return new Setting(container)
.setName(`Hidden Files`)
.setDesc(`Add or remove files from the list that are being hidden`)
.addButton(b => {
b.setButtonText(`Manage File List`)
.onClick(event => {
// sanity check to prevent other code from opening the modal
if (!event.isTrusted) { return }
new FileModal(plugin).open();
});
});
};
};