Skip to content

Commit

Permalink
style: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed May 23, 2022
1 parent 7d45722 commit 08222df
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions mkdocsPublisher/utils/status_bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,26 @@ export class ShareStatusBar {

status: HTMLElement;
constructor (statusBarItem: HTMLElement, numberOfNotesToPublish: number) {
this.statusBarItem = statusBarItem
this.counter = 0
this.numberOfNotesToPublish = numberOfNotesToPublish
this.statusBarItem = statusBarItem
this.counter = 0
this.numberOfNotesToPublish = numberOfNotesToPublish

this.statusBarItem.createEl('span', { text: 'Mkdocs Publication: ' })
this.status = this.statusBarItem.createEl('span', { text: `${this.numberOfNotesToPublish} files marked for sharing` })
this.statusBarItem.createEl('span', { text: 'Mkdocs Publication: ' })
this.status = this.statusBarItem.createEl('span', { text: `${this.numberOfNotesToPublish} files marked for sharing` })
}

increment () {
this.status.setText(`⌛Sharing Notes: ${++this.counter}/${this.numberOfNotesToPublish}`)
this.status.setText(`⌛Sharing Notes: ${++this.counter}/${this.numberOfNotesToPublish}`)
}

finish (displayDurationMillisec: number) {
this.status.setText(`✅ Published Notes: ${this.counter}/${this.numberOfNotesToPublish}`)
setTimeout(() => {
this.statusBarItem.remove()
}, displayDurationMillisec)
this.status.setText(`✅ Published Notes: ${this.counter}/${this.numberOfNotesToPublish}`)
setTimeout(() => {
this.statusBarItem.remove()
}, displayDurationMillisec)
}

error () {
this.statusBarItem.remove()
this.statusBarItem.remove()
}
}

0 comments on commit 08222df

Please sign in to comment.