Sync OpenVPN OAuth gateway routes on tunnel changes
This commit is contained in:
1 parent
9e26358df0
commit
ff2db503ab
6 files changed
+106
-9
No files matched your search
@@ -462,7 +462,8 @@ async function changeState(row, action) {
|
||||
if (stateFilter.value && stateFilter.value !== data.state) {
|
||||
list.value = list.value.filter(item => item.id !== row.id)
|
||||
}
|
||||
ElMessage.success(t(action === 'start' ? 'tunnels.started' : 'tunnels.stopped'))
|
||||
if (data.warning) ElMessage.warning(data.warning)
|
||||
else ElMessage.success(t(action === 'start' ? 'tunnels.started' : 'tunnels.stopped'))
|
||||
} catch (e) {
|
||||
ElMessage.error(e.response?.data?.error || t(action === 'start' ? 'tunnels.startFailed' : 'tunnels.stopFailed'))
|
||||
} finally {
|
||||
|
||||
Reference in new issue
Block a user