diff options
author | Vanessa Pertsch <vanessa.pertsch@nextcloud.com> | 2022-03-01 17:32:11 +0100 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2022-03-02 14:33:44 +0000 |
commit | bf7150eae786feb9bf855e5e9fc1d78be2bc1bca (patch) | |
tree | 0f3633f1c465c60fee2a73b87ebac91ccafcaf59 /apps/user_status/src | |
parent | 5ac1995b0a8ac2f3cc79d1d7ca1ba47eb11904a1 (diff) | |
download | nextcloud-server-bf7150eae786feb9bf855e5e9fc1d78be2bc1bca.tar.gz nextcloud-server-bf7150eae786feb9bf855e5e9fc1d78be2bc1bca.zip |
add new button component
Signed-off-by: Vanessa Pertsch <vanessa.pertsch@nextcloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps/user_status/src')
-rw-r--r-- | apps/user_status/src/components/SetStatusModal.vue | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/apps/user_status/src/components/SetStatusModal.vue b/apps/user_status/src/components/SetStatusModal.vue index f9d10851ae3..73a0faf804c 100644 --- a/apps/user_status/src/components/SetStatusModal.vue +++ b/apps/user_status/src/components/SetStatusModal.vue @@ -55,12 +55,19 @@ <ClearAtSelect :clear-at="clearAt" @select-clear-at="setClearAt" /> <div class="status-buttons"> - <button class="status-buttons__select" :disabled="isSavingStatus" @click="clearStatus"> + <ButtonVue wide="true" + :text="$t('user_status', 'Clear status message')" + :disabled="isSavingStatus" + @click="clearStatus"> {{ $t('user_status', 'Clear status message') }} - </button> - <button class="status-buttons__primary primary" :disabled="isSavingStatus" @click="saveStatus"> + </ButtonVue> + <ButtonVue wide="true" + type="primary" + :text="$t('user_status', 'Set status message')" + :disabled="isSavingStatus" + @click="saveStatus"> {{ $t('user_status', 'Set status message') }} - </button> + </ButtonVue> </div> </div> </Modal> @@ -70,7 +77,7 @@ import { showError } from '@nextcloud/dialogs' import EmojiPicker from '@nextcloud/vue/dist/Components/EmojiPicker' import Modal from '@nextcloud/vue/dist/Components/Modal' - +import ButtonVue from '@nextcloud/vue/dist/Components/Button' import { getAllStatusOptions } from '../services/statusOptionsService' import OnlineStatusMixin from '../mixins/OnlineStatusMixin' import PredefinedStatusesList from './PredefinedStatusesList' @@ -88,6 +95,7 @@ export default { Modal, OnlineStatusSelect, PredefinedStatusesList, + ButtonVue, }, mixins: [OnlineStatusMixin], @@ -267,10 +275,9 @@ export default { .status-buttons { display: flex; - - button { - flex-basis: 50%; - } + padding: 3px; + padding-left:0; + gap: 3px; } } |