Skip to content

Commit

Permalink
Solara
Browse files Browse the repository at this point in the history
  • Loading branch information
ideyaa committed Sep 9, 2024
1 parent 6ded69e commit 75956da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions solara/lib/core/dashboard/brand/BrandDetailController.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ class BrandDetailController {
const dirHandle = await window.showDirectoryPicker();
const configurations = await this.model.createBrandConfigurationsFromDirectory(dirHandle);

if (configurations.length === 0) {
alert("Please choose the appropriate brand folder that includes the brand JSON files.")
return
}

this.view.showOnboardBrandForm((key, name) => {
this.addBrand(key, name, configurations)
})
Expand Down
4 changes: 2 additions & 2 deletions solara/lib/core/dashboard/brand/brand.html
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,8 @@ <h1><span id="brandNametitle"></span></h1>
<h2>Solara simplifies the management of your brand configurations, allowing you to access and update them anytime, anywhere.</h2>
<div class="button-message">You can select a JSON file containing brand configurations that were exported using Solara.</div>
<button id="uploadJsonBtn" style=" animation-delay: 0.5s;">Upload JSON</button>
<div class="button-message" style=" animation-delay: 0.7s;">Alternatively, upload from a directory that contains the brand's JSON files.</div>
<button id="uploadBrandBtn" style=" animation-delay: 0.9s;">Upload Brand</button>
<div class="button-message" style=" animation-delay: 0.7s;">Alternatively, upload from a folder that includes the brand's JSON files.</div>
<button id="uploadBrandBtn" style=" animation-delay: 0.9s;">Upload Folder</button>
<div class="button-message" style=" animation-delay: 1.1s;">You also have the option to create new brand configurations.</div>
<button id="newBrandBtn" style=" animation-delay: 1.3s;">New Brand</button>
</div>
Expand Down

0 comments on commit 75956da

Please sign in to comment.