aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorPytal <24800714+Pytal@users.noreply.github.com>2023-02-07 15:00:18 -0800
committerGitHub <noreply@github.com>2023-02-07 15:00:18 -0800
commitb765a227052300ac76daaecaf37f8e48e77dedec (patch)
treeb0c85c5d672faf136a4702ee51b00cfbb501bfdc /apps
parentdcfc96f0cce0a4bc50c4c989464fbbb275ec16b0 (diff)
parent4b867bb7bbaabac62bd19f191fea7d069763787e (diff)
downloadnextcloud-server-b765a227052300ac76daaecaf37f8e48e77dedec.tar.gz
nextcloud-server-b765a227052300ac76daaecaf37f8e48e77dedec.zip
Merge pull request #36570 from nextcloud/enh/a11y-profile-visibility-select
Port profile visibility select
Diffstat (limited to 'apps')
-rw-r--r--apps/settings/src/components/PersonalInfo/ProfileVisibilitySection/VisibilityDropdown.vue17
1 files changed, 8 insertions, 9 deletions
diff --git a/apps/settings/src/components/PersonalInfo/ProfileVisibilitySection/VisibilityDropdown.vue b/apps/settings/src/components/PersonalInfo/ProfileVisibilitySection/VisibilityDropdown.vue
index 24f025f2da0..f00130ec0a4 100644
--- a/apps/settings/src/components/PersonalInfo/ProfileVisibilitySection/VisibilityDropdown.vue
+++ b/apps/settings/src/components/PersonalInfo/ProfileVisibilitySection/VisibilityDropdown.vue
@@ -26,13 +26,12 @@
<label :for="inputId">
{{ displayId }}
</label>
- <NcMultiselect :id="inputId"
- class="visibility-container__multiselect"
+ <NcSelect :input-id="inputId"
+ class="visibility-container__select"
+ :clearable="false"
:options="visibilityOptions"
- track-by="name"
- label="label"
:value="visibilityObject"
- @change="onVisibilityChange" />
+ @option:selected="onVisibilityChange" />
</div>
</template>
@@ -41,7 +40,7 @@ import { showError } from '@nextcloud/dialogs'
import { loadState } from '@nextcloud/initial-state'
import { subscribe, unsubscribe } from '@nextcloud/event-bus'
-import NcMultiselect from '@nextcloud/vue/dist/Components/NcMultiselect'
+import NcSelect from '@nextcloud/vue/dist/Components/NcSelect.js'
import { saveProfileParameterVisibility } from '../../../service/ProfileService.js'
import { VISIBILITY_PROPERTY_ENUM } from '../../../constants/ProfileConstants.js'
@@ -53,7 +52,7 @@ export default {
name: 'VisibilityDropdown',
components: {
- NcMultiselect,
+ NcSelect,
},
props: {
@@ -173,8 +172,8 @@ export default {
line-height: 50px;
}
- &__multiselect {
- width: 260px;
+ &__select {
+ width: 270px;
max-width: 40vw;
}
}