Skip to content

Commit

Permalink
Solara
Browse files Browse the repository at this point in the history
  • Loading branch information
ideyaa committed Sep 7, 2024
1 parent b1b122d commit bf8e2f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion solara/lib/core/dashboard/brand/BrandController.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class BrandController {
}

initializeEventListeners() {
document.getElementById('allBrandsButton').addEventListener('click', () => {
this.view.allBrandsButton.addEventListener('click', () => {
window.location.href = `../brands/brands.html?source=${this.model.source}`;
});

Expand Down
5 changes: 4 additions & 1 deletion solara/lib/core/dashboard/brand/BrandView.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class BrandView {
this.uploadBrandBtn = document.getElementById('uploadBrandBtn');
this.addNewBrandBtn = document.getElementById('newBrandBtn');
this.downloadBrandBtn = document.getElementById('downloadBrand');
this.allBrandsButton = document.getElementById('allBrandsButton');

this.onboardSheet = document.getElementById('onboardBottomSheet');

Expand All @@ -34,11 +35,13 @@ class BrandView {
}

async initLoal() {
this.allBrandsButton.style.display = 'block'
this.downloadBrandBtn.display = 'none'
this.toggleAddBrandContainer(false);
}

async initRemote() {
this.allBrandsButton.style.display = 'none'
this.downloadBrandBtn.display = 'block'
this.toggleAddBrandContainer(true);

Expand Down Expand Up @@ -285,7 +288,7 @@ class BrandView {
createSection(sectionInfo) {
const section = document.createElement('div');
section.className = 'section';

section.dataset.key = sectionInfo.key
section.dataset.name = sectionInfo.name
section.dataset.subtitle = sectionInfo.subtitle
Expand Down

0 comments on commit bf8e2f7

Please sign in to comment.