chore: Refactor sidebar button with woot-button (#2231)
Co-authored-by: Nithin David Thomas <webofnithin@gmail.com>
This commit is contained in:
@@ -20,22 +20,28 @@
|
|||||||
:key="status.value"
|
:key="status.value"
|
||||||
class="status-items"
|
class="status-items"
|
||||||
>
|
>
|
||||||
<button
|
<woot-button
|
||||||
class="button clear status-change--dropdown-button"
|
variant="clear"
|
||||||
:disabled="status.disabled"
|
class-names="status-change--dropdown-button"
|
||||||
|
:is-disabled="status.disabled"
|
||||||
@click="changeAvailabilityStatus(status.value)"
|
@click="changeAvailabilityStatus(status.value)"
|
||||||
>
|
>
|
||||||
<availability-status-badge :status="status.value" />
|
<availability-status-badge :status="status.value" />
|
||||||
{{ status.label }}
|
{{ status.label }}
|
||||||
</button>
|
</woot-button>
|
||||||
</woot-dropdown-item>
|
</woot-dropdown-item>
|
||||||
</woot-dropdown-menu>
|
</woot-dropdown-menu>
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
|
|
||||||
<button class="status-change--change-button" @click="openStatusMenu">
|
<woot-button
|
||||||
|
variant="clear"
|
||||||
|
color-scheme="secondary"
|
||||||
|
class-names="status-change--change-button link"
|
||||||
|
@click="openStatusMenu"
|
||||||
|
>
|
||||||
{{ $t('SIDEBAR_ITEMS.CHANGE_AVAILABILITY_STATUS') }}
|
{{ $t('SIDEBAR_ITEMS.CHANGE_AVAILABILITY_STATUS') }}
|
||||||
</button>
|
</woot-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -156,15 +162,5 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
}
|
}
|
||||||
& &--change-button {
|
|
||||||
color: var(--b-600);
|
|
||||||
font-size: var(--font-size-small);
|
|
||||||
cursor: pointer;
|
|
||||||
outline: none;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
color: var(--w-600);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user