✨ Improve readability by reformatting computed properties and function calls
This commit is contained in:
@@ -373,7 +373,9 @@ const hasChallongeClientCredentials = computed(
|
|||||||
const isChallongeClientCredentialsValid = computed(
|
const isChallongeClientCredentialsValid = computed(
|
||||||
() => challengeClientCreds.isAuthenticated.value
|
() => challengeClientCreds.isAuthenticated.value
|
||||||
);
|
);
|
||||||
const challongeClientId = computed(() => challengeClientCreds.maskedClientId.value);
|
const challongeClientId = computed(
|
||||||
|
() => challengeClientCreds.maskedClientId.value
|
||||||
|
);
|
||||||
const challongeClientExpiresIn = computed(
|
const challongeClientExpiresIn = computed(
|
||||||
() => challengeClientCreds.tokenInfo.value?.expiresIn
|
() => challengeClientCreds.tokenInfo.value?.expiresIn
|
||||||
);
|
);
|
||||||
@@ -446,7 +448,10 @@ function disconnectChallongeOAuth() {
|
|||||||
|
|
||||||
function saveChallongeClientCredentials() {
|
function saveChallongeClientCredentials() {
|
||||||
try {
|
try {
|
||||||
challengeClientCreds.saveCredentials(newClientId.value, newClientSecret.value);
|
challengeClientCreds.saveCredentials(
|
||||||
|
newClientId.value,
|
||||||
|
newClientSecret.value
|
||||||
|
);
|
||||||
newClientId.value = '';
|
newClientId.value = '';
|
||||||
newClientSecret.value = '';
|
newClientSecret.value = '';
|
||||||
successMessage.value = 'Client credentials saved!';
|
successMessage.value = 'Client credentials saved!';
|
||||||
|
|||||||
Reference in New Issue
Block a user