mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-29 03:09:36 +00:00
fix: pin card instances to configured spaces
Issue: #210 User-Visible: yes
This commit is contained in:
@@ -81,6 +81,17 @@ export const MUTANTS = [
|
||||
replace: ' if (this._norm) {',
|
||||
}],
|
||||
},
|
||||
{
|
||||
id: 'fixed-floor-transition-guard-bypassed',
|
||||
guard: 'node demo/smoke_fixed_floor.mjs',
|
||||
because: 'a fixed card must reject tabs and every internal active-space mutation instead of '
|
||||
+ 'showing another floor after the initial resolver selected the configured one',
|
||||
patches: [{
|
||||
file: 'src/houseplan-card.ts',
|
||||
find: ' if (authority || !this._hasFixedFloor) return true;',
|
||||
replace: ' if (authority || this._hasFixedFloor) return true;',
|
||||
}],
|
||||
},
|
||||
{
|
||||
id: 'empty-space-cleanup-disabled',
|
||||
guard: 'node demo/smoke_optional_space_model.mjs',
|
||||
|
||||
Reference in New Issue
Block a user