mirror of
https://github.com/unraid/api.git
synced 2026-01-06 08:39:54 -06:00
refactor(upc): sign in/out api running copy
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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(); },
|
||||
|
||||
Reference in New Issue
Block a user