patches v1.3.4 #76
3 changed files with 12 additions and 3 deletions
|
@ -21,7 +21,10 @@ export const useProtocolAgendaStore = defineStore("protocolAgenda", {
|
|||
},
|
||||
getters: {
|
||||
detectedChangeProtocolAgenda: (state) =>
|
||||
!isEqual(state.origin, state.agenda) && state.syncingProtocolAgenda != "syncing",
|
||||
!isEqual(
|
||||
state.origin.sort((a, b) => a.id - b.id),
|
||||
state.agenda.sort((a, b) => a.id - b.id)
|
||||
) && state.syncingProtocolAgenda != "syncing",
|
||||
},
|
||||
actions: {
|
||||
setProtocolAgendaSyncingState(state: "synced" | "syncing" | "detectedChanges" | "failed") {
|
||||
|
|
|
@ -22,7 +22,10 @@ export const useProtocolDecisionStore = defineStore("protocolDecision", {
|
|||
},
|
||||
getters: {
|
||||
detectedChangeProtocolDecision: (state) =>
|
||||
!isEqual(state.origin, state.decision) && state.syncingProtocolDecision != "syncing",
|
||||
!isEqual(
|
||||
state.origin.sort((a, b) => a.id - b.id),
|
||||
state.decision.sort((a, b) => a.id - b.id)
|
||||
) && state.syncingProtocolDecision != "syncing",
|
||||
},
|
||||
actions: {
|
||||
setProtocolDecisionSyncingState(state: "synced" | "syncing" | "detectedChanges" | "failed") {
|
||||
|
|
|
@ -22,7 +22,10 @@ export const useProtocolVotingStore = defineStore("protocolVoting", {
|
|||
},
|
||||
getters: {
|
||||
detectedChangeProtocolVoting: (state) =>
|
||||
!isEqual(state.origin, state.voting) && state.syncingProtocolVoting != "syncing",
|
||||
!isEqual(
|
||||
state.origin.sort((a, b) => a.id - b.id),
|
||||
state.voting.sort((a, b) => a.id - b.id)
|
||||
) && state.syncingProtocolVoting != "syncing",
|
||||
},
|
||||
actions: {
|
||||
setProtocolVotingSyncingState(state: "synced" | "syncing" | "detectedChanges" | "failed") {
|
||||
|
|
Loading…
Add table
Reference in a new issue