Skip to content

Commit 4685e7e

Browse files
committed
Don't auto-optimize shared plans
When I view https://prunplanner.org/shared/3b26959f-f281-41f6-bc12-343957c67e36 unlogged, I see 503/500 area used which isn't what my saved plan has. This is because the auto-optimized habs checkbox is set. I think it's unnecessary to check props.disabled in PlanView.vue for the planPerfs variable because it's only used for the binding of the value of the auto-optimized hab's checkbox. I think we want it checked for unsaved plans otherwise it uses the plan's settings. Before it was set to true for unsaved plans and shared plans (disabled == shared plans if you trace it through to usePlanningDataLoader)
1 parent b3d74f4 commit 4685e7e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/views/PlanView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
// Plan Preferences
176176
const planPrefs = computed<ReturnType<typeof usePlanPreferences> | null>(
177177
() => {
178-
return !props.disabled && props.planData.uuid !== undefined
178+
return props.planData.uuid !== undefined
179179
? usePlanPreferences(props.planData.uuid)
180180
: null;
181181
}

0 commit comments

Comments
 (0)