mirror of
https://github.com/davidingerslev/outlook-meeting-notes.git
synced 2026-07-22 05:41:46 +00:00
Improved notices for users
This commit is contained in:
parent
e7f3295e60
commit
e88ee9f5aa
1 changed files with 2 additions and 2 deletions
4
main.ts
4
main.ts
|
|
@ -75,7 +75,7 @@ export default class OutlookMeetingNotes extends Plugin {
|
|||
let meetingNoteFile = vault.getFileByPath(filePath);
|
||||
if (meetingNoteFile) {
|
||||
// File already exists
|
||||
// TODO: send a message to the user
|
||||
new Notice(meetingNoteFile.basename + ' already exists: opening it');
|
||||
}
|
||||
else {
|
||||
if (vault.getFolderByPath(newFolderPath) == null) {
|
||||
|
|
@ -85,7 +85,7 @@ export default class OutlookMeetingNotes extends Plugin {
|
|||
this.settings.notesTemplate,
|
||||
fileData);
|
||||
meetingNoteFile = await vault.create(filePath, mustacheOutput);
|
||||
new Notice('New file: ' + meetingNoteFile.basename);
|
||||
new Notice('New file created: ' + meetingNoteFile.basename);
|
||||
}
|
||||
const openInNewTab = false;
|
||||
this.app.workspace.getLeaf(openInNewTab).openFile(meetingNoteFile);
|
||||
|
|
|
|||
Loading…
Reference in a new issue