Implement 'you have unsaved changes' (#850)
This commit is contained in:
13
skyvern-frontend/src/store/WorkflowHasChangesStore.ts
Normal file
13
skyvern-frontend/src/store/WorkflowHasChangesStore.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { create } from "zustand";
|
||||
|
||||
type WorkflowHasChangesStore = {
|
||||
hasChanges: boolean;
|
||||
setHasChanges: (hasChanges: boolean) => void;
|
||||
};
|
||||
|
||||
const useWorkflowHasChangesStore = create<WorkflowHasChangesStore>((set) => ({
|
||||
hasChanges: false,
|
||||
setHasChanges: (hasChanges) => set({ hasChanges }),
|
||||
}));
|
||||
|
||||
export { useWorkflowHasChangesStore };
|
||||
Reference in New Issue
Block a user