Add user-scoped Hermes profile access
This commit is contained in:
@@ -37,9 +37,19 @@ async function toggleDetail() {
|
||||
}
|
||||
|
||||
async function handleSwitch() {
|
||||
dialog.warning({
|
||||
title: t('profiles.switchTo'),
|
||||
content: t('profiles.switchConfirm', { name: props.profile.name }),
|
||||
positiveText: t('profiles.switchTo'),
|
||||
negativeText: t('common.cancel'),
|
||||
onPositiveClick: performHermesSwitch,
|
||||
})
|
||||
}
|
||||
|
||||
async function performHermesSwitch() {
|
||||
switching.value = true
|
||||
try {
|
||||
const ok = await profilesStore.switchProfile(props.profile.name)
|
||||
const ok = await profilesStore.switchHermesProfile(props.profile.name)
|
||||
if (ok) {
|
||||
message.success(t('profiles.switchSuccess', { name: props.profile.name }))
|
||||
// Reload to refresh all profile-dependent data
|
||||
|
||||
Reference in New Issue
Block a user