Skip to content

Commit

Permalink
make best practice panel hide changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectronicBlueberry committed Aug 2, 2024
1 parent 22dcb9d commit 15b353e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions client/src/components/Workflow/Editor/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,7 @@ export default {
this.ensureParametersSet();
this.stateStore.activeNodeId = null;
this.showInPanel = "lint";
this.showChanges = false;
},
onUpgrade() {
this.onAttemptRefactor([{ action_type: "upgrade_all_steps" }]);
Expand Down
2 changes: 1 addition & 1 deletion client/src/composables/math.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function useClamp(ref: Ref<number>, min: MaybeRefOrGetter<number>, max: M
* Wraps a number ref, restricting it's values to align to a given step size
*
* @param ref ref containing a number to wrap
* @param stepSize size of steps to restrict value to
* @param [stepSize = 1] size of steps to restrict value to. defaults to 1
* @returns wrapped red
*/
export function useStep(ref: Ref<number>, stepSize: MaybeRefOrGetter<number> = 1): Ref<number> {
Expand Down
2 changes: 2 additions & 0 deletions client/src/stores/undoRedoStore/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export const useUndoRedoStore = defineScopedStore("undoRedoStore", () => {
undoActionStack.value.forEach((action) => action.destroy());
undoActionStack.value = [];
deletedActions.value = [];
minUndoActions.value = 10;
maxUndoActions.value = 10000;
clearRedoStack();
}

Expand Down

0 comments on commit 15b353e

Please sign in to comment.