Skip to content

Commit

Permalink
Port profile visibility select
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal authored and backportbot-nextcloud[bot] committed Feb 7, 2023
1 parent 5c53fe7 commit 091208e
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand All @@ -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'
Expand All @@ -53,7 +52,7 @@ export default {
name: 'VisibilityDropdown',

components: {
NcMultiselect,
NcSelect,
},

props: {
Expand Down Expand Up @@ -173,8 +172,8 @@ export default {
line-height: 50px;
}

&__multiselect {
width: 260px;
&__select {
width: 270px;
max-width: 40vw;
}
}
Expand Down

0 comments on commit 091208e

Please sign in to comment.