Skip to content

Commit

Permalink
add tooltip to support contact call link
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
Julien Veyssier committed Nov 18, 2021
1 parent 732204a commit 9986e43
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
node-version: 14

- name: Set up npm
+ run: npm i -g npm
run: npm i -g npm

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
8 changes: 8 additions & 0 deletions src/views/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
</template>
</EmptyContent>
<a v-if="supportUserId"
v-tooltip.top="{ content: callSupportUserTooltip }"
class="call-link"
:href="callUrl">
<Avatar
Expand All @@ -28,9 +29,13 @@ import axios from '@nextcloud/axios'
import { generateUrl } from '@nextcloud/router'
import EmptyContent from '@nextcloud/vue/dist/Components/EmptyContent'
import Avatar from '@nextcloud/vue/dist/Components/Avatar'
import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip'
import VueMarkdown from 'vue-markdown'
import Vue from 'vue'
Vue.directive('tooltip', Tooltip)
export default {
name: 'Dashboard',
Expand Down Expand Up @@ -72,6 +77,9 @@ export default {
? this.supportText.replace('{name}', this.supportUserName)
: t('welcome', 'Talk to your support contact ({name})', { name: this.supportUserName })
},
callSupportUserTooltip() {
return t('welcome', 'Talk to {name}', { name: this.supportUserName })
},
},
beforeMount() {
Expand Down

0 comments on commit 9986e43

Please sign in to comment.