Skip to content

Commit cf53865

Browse files
authored
fix(onedrive): fix onedrive permission doc link unclickable (#648)
1 parent aede805 commit cf53865

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

package-lock.json

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Popup/OneDrivePage.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@
3030
{{ i18n.sign_in_business }}
3131
</a-button>
3232
<div class="text" v-show="!backupToken">
33-
<a href="https://authenticator.cc/docs/en/onedrive-perms">{{
34-
i18n.onedrive_business_perms
35-
}}</a>
33+
<a
34+
v-on:click="openLink('https://otp.ee/onedriveperms')"
35+
href="https://otp.ee/onedriveperms"
36+
>{{ i18n.onedrive_business_perms }}</a
37+
>
3638
</div>
3739
<a-button v-show="backupToken" @click="backupUpload()">
3840
{{ i18n.manual_dropbox }}
@@ -75,6 +77,10 @@ export default Vue.extend({
7577
},
7678
},
7779
methods: {
80+
openLink(url: string) {
81+
window.open(url, "_blank");
82+
return;
83+
},
7884
getBackupToken(business?: boolean) {
7985
localStorage.oneDriveBusiness = Boolean(business);
8086
chrome.runtime.sendMessage({ action: service });

0 commit comments

Comments
 (0)