]> source.dussan.org Git - nextcloud-server.git/commitdiff
Dashboard: Remove icons from greeting
authorJan C. Borchardt <hey@jancborchardt.net>
Fri, 7 Aug 2020 13:57:38 +0000 (15:57 +0200)
committerJan C. Borchardt <hey@jancborchardt.net>
Fri, 7 Aug 2020 13:57:38 +0000 (15:57 +0200)
Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
apps/dashboard/src/App.vue

index d73f895fc9141157a1dd95a5a0a1f4dfdd59a6c5..d9bae1aecbc35f6d64028c5bf6fbc66c81954258 100644 (file)
@@ -1,6 +1,6 @@
 <template>
        <div id="app-dashboard">
-               <h2>{{ greeting.icon }} {{ greeting.text }}</h2>
+               <h2>{{ greeting.text }}</h2>
                <div class="statuses">
                        <div v-for="status in registeredStatus"
                                :id="'status-' + status"
@@ -106,18 +106,15 @@ export default {
                        const shouldShowName = this.displayName && this.uid !== this.displayName
 
                        if (time > 18) {
-                               return { icon: '🌙', text: shouldShowName ? t('dashboard', 'Good evening, {name}', { name: this.displayName }) : t('dashboard', 'Good evening') }
+                               return { text: shouldShowName ? t('dashboard', 'Good evening, {name}', { name: this.displayName }) : t('dashboard', 'Good evening') }
                        }
                        if (time > 12) {
-                               return { icon: '☀', text: shouldShowName ? t('dashboard', 'Good afternoon, {name}', { name: this.displayName }) : t('dashboard', 'Good afternoon') }
-                       }
-                       if (time === 12) {
-                               return { icon: '🍽', text: shouldShowName ? t('dashboard', 'Time for lunch, {name}', { name: this.displayName }) : t('dashboard', 'Time for lunch') }
+                               return { text: shouldShowName ? t('dashboard', 'Good afternoon, {name}', { name: this.displayName }) : t('dashboard', 'Good afternoon') }
                        }
                        if (time > 5) {
-                               return { icon: '🌄', text: shouldShowName ? t('dashboard', 'Good morning, {name}', { name: this.displayName }) : t('dashboard', 'Good morning') }
+                               return { text: shouldShowName ? t('dashboard', 'Good morning, {name}', { name: this.displayName }) : t('dashboard', 'Good morning') }
                        }
-                       return { icon: '🦉', text: shouldShowName ? t('dashboard', 'Have a night owl, {name}', { name: this.displayName }) : t('dashboard', 'Have a night owl') }
+                       return {text: shouldShowName ? t('dashboard', 'Good night, {name}', { name: this.displayName }) : t('dashboard', 'Have a night owl') }
                },
                isActive() {
                        return (panel) => this.layout.indexOf(panel.id) > -1