Skip to content
Snippets Groups Projects
Commit 41f2c1d5 authored by Dennis Tang's avatar Dennis Tang 🎨
Browse files

show button toggle value as primary text color when single project is selected

parent b53e544c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -56,6 +56,9 @@ export default {
computed: {
...mapState(['selectedProject']),
...mapGetters(['hasProject']),
hasOneProject() {
return this.items.length === 1;
},
isDisabled() {
return this.items.length < 2;
},
Loading
Loading
@@ -158,7 +161,7 @@ export default {
:value="selectedProject.projectId"
/>
<dropdown-button
:class="{ 'gl-field-error-outline': hasErrors }"
:class="{ 'gl-field-error-outline': hasErrors, 'read-only': hasOneProject }"
:is-disabled="isDisabled"
:is-loading="isLoading"
:toggle-text="toggleText"
Loading
Loading
Loading
Loading
@@ -63,6 +63,10 @@
border-radius: $border-radius-base;
white-space: nowrap;
 
&:disabled.read-only {
color: $gl-text-color !important;
}
&.no-outline {
outline: 0;
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment