Skip to content

Commit

Permalink
removed unesessary log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
saertna committed Oct 16, 2023
1 parent 2f066e3 commit 2c560a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
11 changes: 3 additions & 8 deletions main.js

Large diffs are not rendered by default.

15 changes: 5 additions & 10 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,21 @@ export default class gamification extends Plugin {

setSetting(key: string, value: number) {
// Set a specific setting
console.log(`new value for ${key} is ${value}`)
//console.log(`new value for ${key} is ${value}`)
this.settings[key] = value;
this.saveSettings();
}

setSettingBoolean(key: string, value: boolean) {
// Set a specific setting
console.log(`new value for ${key} is ${value}`)
//console.log(`new value for ${key} is ${value}`)
this.settings[key] = value;
this.saveSettings();
}

setSettingString(key: string, value: string) {
// Set a specific setting
console.log(`new value for ${key} is ${value}`)
//console.log(`new value for ${key} is ${value}`)
this.settings[key] = value;
this.saveSettings();
}
Expand Down Expand Up @@ -1375,9 +1375,6 @@ class MultiSelectModal extends Modal {


private createBoosterList(labelText: string) {

console.log(`labelText: ${labelText}`)

const container = document.createElement('div');
container.className = 'modal-checkbox-container';

Expand All @@ -1386,7 +1383,7 @@ class MultiSelectModal extends Modal {

const label = document.createElement('div');
label.className = `${labelText.replace(' ','-')}`;
label.innerHTML = `${labelText} : ${stock}x (s)`;
label.innerHTML = `${labelText} : (${stock})`;

const useButton = document.createElement('button');
useButton.innerText = 'Use';
Expand Down Expand Up @@ -1455,13 +1452,11 @@ class MultiSelectModal extends Modal {


private updateQuantityDisplay(labelText: string) {
console.log('updateQuantityDisplay called with label:', labelText);

const stock = this.boosters[labelText]
const stockInfo = document.querySelector(`.${labelText.replace(' ','-')}`);
if (stockInfo) {
stockInfo.innerHTML = ''; // Clear the current content
stockInfo.innerHTML = `${labelText} : ${stock}x (s)`
stockInfo.innerHTML = `${labelText} : (${stock})`
}
}

Expand Down

0 comments on commit 2c560a7

Please sign in to comment.