@@ -8,19 +8,19 @@ import type { Ref } from 'vue'
88
99import { t } from ' @nextcloud/l10n'
1010import { generateUrl } from ' @nextcloud/router'
11- import { inject , ref , onMounted , onBeforeUnmount } from ' vue'
11+ import { inject , onBeforeUnmount , onMounted , ref } from ' vue'
1212import NcActionButton from ' @nextcloud/vue/components/NcActionButton'
1313import NcActionLink from ' @nextcloud/vue/components/NcActionLink'
1414import NcActions from ' @nextcloud/vue/components/NcActions'
1515import NcActionSeparator from ' @nextcloud/vue/components/NcActionSeparator'
1616import IconBugOutline from ' vue-material-design-icons/BugOutline.vue'
17+ import IconCircle from ' vue-material-design-icons/Circle.vue'
18+ import IconCloudDownloadOutline from ' vue-material-design-icons/CloudDownloadOutline.vue'
1719import IconCogOutline from ' vue-material-design-icons/CogOutline.vue'
1820import IconInformationOutline from ' vue-material-design-icons/InformationOutline.vue'
1921import IconMenu from ' vue-material-design-icons/Menu.vue'
2022import IconReload from ' vue-material-design-icons/Reload.vue'
2123import IconWeb from ' vue-material-design-icons/Web.vue'
22- import IconCloudDownloadOutline from ' vue-material-design-icons/CloudDownloadOutline.vue'
23- import IconCircle from ' vue-material-design-icons/Circle.vue'
2424import { BUILD_CONFIG } from ' ../../../../shared/build.config.ts'
2525import { getCurrentTalkRoutePath } from ' ../../TalkWrapper/talk.service.ts'
2626
@@ -43,7 +43,9 @@ onMounted(() => {
4343 window .TALK_DESKTOP .checkForUpdate ()
4444})
4545onBeforeUnmount (() => {
46- if (typeof unsubscribeNewVersion === ' function' ) unsubscribeNewVersion ()
46+ if (typeof unsubscribeNewVersion === ' function' ) {
47+ unsubscribeNewVersion ()
48+ }
4749})
4850
4951 </script >
@@ -61,7 +63,7 @@ onBeforeUnmount(() => {
6163 </template >
6264
6365 <template v-if =" isTalkInitialized " >
64- <NcActionButton @click = " openInWeb " : close-after-click= " true " >
66+ <NcActionButton close-after-click @click = " openInWeb " >
6567 <template #icon >
6668 <IconWeb :size =" 20" />
6769 </template >
@@ -77,17 +79,19 @@ onBeforeUnmount(() => {
7779 </template >
7880 {{ t('talk_desktop', 'Force reload') }}
7981 </NcActionButton >
80- <NcActionLink v-if =" updateAvailable"
81- :close-after-click =" true"
82+ <NcActionLink
83+ v-if =" updateAvailable"
84+ close-after-click
8285 href =" https://github.com/nextcloud/talk-desktop/releases/latest"
8386 target =" _blank" >
8487 <template #icon >
8588 <IconCloudDownloadOutline :size =" 20" />
8689 </template >
8790 {{ t('talk_desktop', 'Update available!\nDownload latest version') }}
8891 </NcActionLink >
89- <NcActionLink v-if =" !BUILD_CONFIG.isBranded"
90- :close-after-click =" true"
92+ <NcActionLink
93+ v-if =" !BUILD_CONFIG.isBranded"
94+ close-after-click
9195 :href =" packageInfo.bugs.create || packageInfo.bugs.url"
9296 target =" _blank" >
9397 <template #icon >
@@ -104,7 +108,7 @@ onBeforeUnmount(() => {
104108 </template >
105109 {{ t('talk_desktop', 'App settings') }}
106110 </NcActionButton >
107- <NcActionButton @click = " showHelp " : close-after-click= " true " >
111+ <NcActionButton close-after-click @click = " showHelp " >
108112 <template #icon >
109113 <IconInformationOutline :size =" 20" />
110114 </template >
0 commit comments