Skip to content

Commit

Permalink
Merge pull request #167 from CC2021-WBL/166/Logic/SettingsComeback
Browse files Browse the repository at this point in the history
#166 Fix Settings Button
  • Loading branch information
MonikaKrella authored Jan 4, 2022
2 parents aa0824d + e00cceb commit 2dd202f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/app/view/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ class View {
doBtnHallOfFame(`Hall of fame`),
buttonPlay('Play the game'),
);
const settingsButton = displayButtonSettings('settings');
settingsButton.addEventListener('click', this.toggleSettingsView);
this.render('.game-image__btns', settingsButton);
};

showRulesButtons() {
Expand All @@ -74,10 +77,6 @@ class View {
...doHallOfFameContent(gameMode, difficultyLevel),
);
this.showRulesButtons();

const settingsButton = displayButtonSettings('settings');
settingsButton.addEventListener('click', this.toggleSettingsView);
this.render('.game-image__btns', settingsButton);
};

showSettings() {
Expand Down

0 comments on commit 2dd202f

Please sign in to comment.