mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 06:37:56 -04:00
Port profile visibility select
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
59578817f5
commit
4b867bb7bb
3 changed files with 11 additions and 12 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
4
dist/settings-vue-settings-personal-info.js
vendored
4
dist/settings-vue-settings-personal-info.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue