summaryrefslogtreecommitdiffstats
path: root/apps/user_status
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-02-28 17:19:06 -0800
committerChristopher Ng <chrng8@gmail.com>2023-02-28 17:19:06 -0800
commit86ddc3f3bb1d7d29f68008e90a7f591672a896e1 (patch)
treeb05cb0f5f011041ebd0c9c22e1ee4f4541d7f77f /apps/user_status
parentb92e28e6e6842b8163da6986795e0ac0763412e6 (diff)
downloadnextcloud-server-86ddc3f3bb1d7d29f68008e90a7f591672a896e1.tar.gz
nextcloud-server-86ddc3f3bb1d7d29f68008e90a7f591672a896e1.zip
Port clear user status select
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/user_status')
-rw-r--r--apps/user_status/src/components/ClearAtSelect.vue24
1 files changed, 12 insertions, 12 deletions
diff --git a/apps/user_status/src/components/ClearAtSelect.vue b/apps/user_status/src/components/ClearAtSelect.vue
index 620b72a3a41..289b5e52345 100644
--- a/apps/user_status/src/components/ClearAtSelect.vue
+++ b/apps/user_status/src/components/ClearAtSelect.vue
@@ -24,24 +24,25 @@
<label class="clear-at-select__label" for="clearStatus">
{{ $t('user_status', 'Clear status after') }}
</label>
- <NcMultiselect id="clearStatus"
- label="label"
- :value="option"
+ <NcSelect input-id="clearStatus"
+ class="clear-at-select__select"
:options="options"
- open-direction="top"
- @select="select" />
+ :value="option"
+ :clearable="false"
+ placement="top"
+ @option:selected="select" />
</div>
</template>
<script>
-import NcMultiselect from '@nextcloud/vue/dist/Components/NcMultiselect'
-import { getAllClearAtOptions } from '../services/clearAtOptionsService'
-import { clearAtFilter } from '../filters/clearAtFilter'
+import NcSelect from '@nextcloud/vue/dist/Components/NcSelect.js'
+import { getAllClearAtOptions } from '../services/clearAtOptionsService.js'
+import { clearAtFilter } from '../filters/clearAtFilter.js'
export default {
name: 'ClearAtSelect',
components: {
- NcMultiselect,
+ NcSelect,
},
props: {
clearAt: {
@@ -91,12 +92,11 @@ export default {
align-items: center;
&__label {
- margin-right: 10px;
+ margin-right: 12px;
}
- .multiselect {
+ &__select {
flex-grow: 1;
- min-width: 130px;
}
}
</style>