refactor(upc): sign in/out api running copy

This commit is contained in:
Zack Spear
2023-09-06 10:08:49 -07:00
parent 800fb6a79f
commit b39543d744
2 changed files with 5 additions and 3 deletions

View File

@@ -200,5 +200,7 @@
"Your free Trial key provides all the functionality of a Pro Registration key": "Your free Trial key provides all the functionality of a Pro Registration key",
"Calculating trial expiration…": "Calculating trial expiration…",
"Signing In": "Signing In",
"Signing Out": "Signing Out"
"Signing Out": "Signing Out",
"Sign In requires the local unraid-api to be running": "Sign In requires the local unraid-api to be running",
"Sign Out requires the local unraid-api to be running": "Sign Out requires the local unraid-api to be running"
}

View File

@@ -266,7 +266,7 @@ export const useServerStore = defineStore('server', () => {
*/
const signInAction = computed((): ServerStateDataAction => {
const disabled = unraidApiStore.unraidApiStatus !== 'online';
const title = disabled ? 'Sign In requires a connection to unraid-api' : '';
const title = disabled ? 'Sign In requires the local unraid-api to be running' : '';
return {
click: () => { accountStore.signIn(); },
disabled,
@@ -287,7 +287,7 @@ export const useServerStore = defineStore('server', () => {
title = 'Sign Out requires a keyfile';
}
if (unraidApiStore.unraidApiStatus !== 'online') {
title = 'Sign Out requires a connection to unraid-api';
title = 'Sign Out requires the local unraid-api to be running';
}
return {
click: () => { accountStore.signOut(); },