Introduce stable server IDs for subscription state
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
export function connectionAction({ connected, selectedTag, configExists }) {
|
||||
export function connectionAction({ connected, selectedServerId, configExists }) {
|
||||
if (connected) return { type: 'stop' };
|
||||
if (selectedTag) return { type: 'apply', selectedTag };
|
||||
if (selectedServerId) return { type: 'apply', serverId: selectedServerId };
|
||||
if (configExists) return { type: 'restart' };
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user