Fix disabled

This commit is contained in:
Webifi 2023-06-03 13:18:42 -05:00
parent 95ce41116b
commit 2880cf3750
1 changed files with 2 additions and 2 deletions

View File

@ -256,7 +256,7 @@
<!-- <button class="button is-info" on:click={closeSettings}>Close</button> --> <!-- <button class="button is-info" on:click={closeSettings}>Close</button> -->
<button class="button" title="Save changes to this profile." class:is-disabled={!chatSettings.isDirty} on:click={saveProfile}>Save</button> <button class="button" title="Save changes to this profile." class:is-disabled={!chatSettings.isDirty} on:click={saveProfile}>Save</button>
<button class="button is-warning" title="Throw away changes to this profile." class:is-disabled={!chatSettings.isDirty} on:click={clearSettings}>Reset</button> <button class="button is-warning" title="Throw away changes to this profile." class:is-disabled={!chatSettings.isDirty} on:click={clearSettings}>Reset</button>
<button class="button is-warning" title="Start new chat with this profile." class:is-disabled={!chatSettings.isDirty} on:click={startNewChat}>New Chat</button> <button class="button" title="Start new chat with this profile." on:click={startNewChat}>New Chat</button>
</div> </div>
<div class="level-right"> <div class="level-right">
<div class="dropdown is-right is-up" class:is-active={showProfileMenu}> <div class="dropdown is-right is-up" class:is-active={showProfileMenu}>
@ -277,7 +277,7 @@
<a href={'#'} class="dropdown-item" class:is-disabled={isDefault} on:click|preventDefault={pinDefaultProfile}> <a href={'#'} class="dropdown-item" class:is-disabled={isDefault} on:click|preventDefault={pinDefaultProfile}>
<span class="menu-icon"><Fa icon={faThumbtack}/></span> Set as Default Profile <span class="menu-icon"><Fa icon={faThumbtack}/></span> Set as Default Profile
</a> </a>
<a href={'#'} class="dropdown-item" class:is-disabled={isDefault} on:click|preventDefault={startNewChat}> <a href={'#'} class="dropdown-item" on:click|preventDefault={startNewChat}>
<span class="menu-icon"><Fa icon={faSquarePlus}/></span> Start New Chat Using Profile <span class="menu-icon"><Fa icon={faSquarePlus}/></span> Start New Chat Using Profile
</a> </a>
<hr class="dropdown-divider"> <hr class="dropdown-divider">