Skip to content

Commit

Permalink
Port clear user status select
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Mar 1, 2023
1 parent b92e28e commit 86ddc3f
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
24 changes: 12 additions & 12 deletions apps/user_status/src/components/ClearAtSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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>
4 changes: 2 additions & 2 deletions dist/core-common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-common.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/user-status-modal-8299.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/user-status-modal-8299.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/user_status-menu.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/user_status-menu.js.map

Large diffs are not rendered by default.

0 comments on commit 86ddc3f

Please sign in to comment.