(login) notify when token is saved.

This commit is contained in:
2021-04-04 16:45:43 +02:00
parent 913e046135
commit 1191fdbf9b
4 changed files with 23 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ import { computed, ref } from 'vue'
import { DataType } from '@/data/DataType.enum'
import { GithubAccessToken } from '@/data/models/GithubAccessToken'
import { data } from '@/data/data'
import { confirmMessage } from '@/utils/notif'
const personalAccessTokenId = 'PAT'
const username = ref<string | null>(null)
@@ -40,6 +41,7 @@ export const useGitHubLogin = () => {
await data.add(personalAccessToken)
getAccessToken()
confirmMessage('token saved!')
}
return {