Skip to content

Commit

Permalink
Replace custom input field with NcInputField
Browse files Browse the repository at this point in the history
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
  • Loading branch information
JuliaKirschenheuter committed Aug 31, 2023
1 parent 931ab2e commit 381e3ed
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 15 deletions.
19 changes: 10 additions & 9 deletions apps/user_status/src/components/CustomMessageInput.vue
Expand Up @@ -24,33 +24,34 @@
<NcButton type="tertiary"
class="custom-input__emoji-button"
:aria-label="t('user_status', 'Emoji for your status message')">
{{ visibleIcon }}
<template #icon>
{{ visibleIcon }}
</template>
</NcButton>
</NcEmojiPicker>
<div class="custom-input__container">
<label class="hidden-visually" for="user_status_message">
{{ t('user_status', 'What is your status?') }}
</label>
<input id="user_status_message"
ref="input"
maxlength="80"
<NcTextField maxlength="80"
:disabled="disabled"
:placeholder="$t('user_status', 'What is your status?')"
type="text"
:value="message"
@input="onChange">
ref="input"
type="text"
:label="t('user_status', 'What is your status?')"
@input="onChange" />
</div>
</div>
</template>

<script>
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcEmojiPicker from '@nextcloud/vue/dist/Components/NcEmojiPicker.js'
import NcTextField from '@nextcloud/vue/dist/Components/NcTextField.js'
export default {
name: 'CustomMessageInput',
components: {
NcTextField,
NcButton,
NcEmojiPicker,
},
Expand Down
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 381e3ed

Please sign in to comment.