/** * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ import { mapState } from 'vuex' import { showError } from '@nextcloud/dialogs' export default { computed: { ...mapState({ statusType: state => state.userStatus.status, statusIsUserDefined: state => state.userStatus.statusIsUserDefined, customIcon: state => state.userStatus.icon, customMessage: state => state.userStatus.message, }), /** * The message displayed in the top right corner * * @return {string} */ visibleMessage() { if (this.customIcon && this.customMessage) { return `${this.customIcon} ${this.customMessage}` } if (this.customMessage) { return this.customMessage } if (this.statusIsUserDefined) { switch (this.statusType) { case 'online': return this.$t('user_status', 'Online') case 'away': case 'busy': return this.$t('user_status', 'Away') case 'dnd': return this.$t('user_status', 'Do not disturb') case 'invisible': return this.$t('user_status', 'Invisible') case 'offline': return this.$t('user_status', 'Offline') } } return this.$t('user_status', 'Set status') }, }, methods: { /** * Changes the user-status * * @param {string} statusType (online / away / dnd / invisible) */ async changeStatus(statusType) { try { await this.$store.dispatch('setStatus', { statusType }) } catch (err) { showError(this.$t('user_status', 'There was an error saving the new status')) console.debug(err) } }, }, } regex'>Fix/mp3_regex Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/core/css/whatsnew.css
blob: 638b4a53eb16679747b89cd63c0d4ab0a72cb6f2 (plain)
1
2
3
4
/*!
 * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */.whatsNewPopover{bottom:35px !important;inset-inline-start:15px !important;width:270px;z-index:700}.whatsNewPopover p{width:auto !important}.whatsNewPopover .caption{font-weight:bold;cursor:auto !important}.whatsNewPopover .icon-close{position:absolute;inset-inline-end:0}.whatsNewPopover::after{content:none}/*# sourceMappingURL=whatsnew.css.map */