]> source.dussan.org Git - nextcloud-server.git/commitdiff
Show icon only with dnd status in the message
authorJulius Härtl <jus@bitgrid.net>
Wed, 30 Sep 2020 14:38:38 +0000 (16:38 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Fri, 2 Oct 2020 15:13:26 +0000 (17:13 +0200)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/user_status/src/views/Dashboard.vue

index 747837beb81b9c11e5541a4d7a70f12112b8a059..80f9385db7830564bd4ec65fa1e680328fa6578a 100644 (file)
@@ -57,7 +57,7 @@ export default {
                        return this.statuses.map((item) => {
                                const icon = item.icon || ''
                                const message = item.message || ''
-                               const status = `${icon} ${message}`
+                               const status = item.status === 'dnd' ? `${icon} ${message}` : message
 
                                let subText
                                if (item.icon === null && item.message === null && item.timestamp === null) {