Skip to content

Commit

Permalink
update publish message
Browse files Browse the repository at this point in the history
  • Loading branch information
mixasite committed Apr 12, 2023
1 parent 9126213 commit af3af73
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ class MixaSettingTab extends PluginSettingTab {
}

renderFileInfo(files: { deletions: { id: string; }[]; uploads: { id: string; }[]; ignored: { id: string; }[] }) {
this.infoDiv.textContent = '';

if (!files.uploads.length && !files.deletions.length) {
this.fileDiv.innerHTML = "Nothing to upload"
} else {
Expand Down Expand Up @@ -157,6 +155,7 @@ class MixaSettingTab extends PluginSettingTab {
this.infoDiv.textContent = 'We are checking the diff...';
const files = await syncData(this.plugin.settings, this.app.vault, this.app.metadataCache, true);
this.renderFileInfo(files)
this.infoDiv.textContent = '';
} catch (error) {
this.infoDiv.textContent = error.message || 'Failed to get the diff for your site. Please try again, or contact support@mixa.site';
this.fileDiv.innerHTML = '';
Expand Down

0 comments on commit af3af73

Please sign in to comment.