Compare commits

...

4 Commits

Author SHA1 Message Date
Andrew Henry
279ff0367d Merge branch 'master' into fix-4810 2022-02-07 13:53:46 -08:00
Shefali Joshi
c231eb9bc0 Merge branch 'master' into fix-4810 2022-02-07 13:02:33 -08:00
Charles Hacskaylo
b778965fcf Merge branch 'master' into fix-4810 2022-02-03 17:13:23 -08:00
Charles Hacskaylo
4113a13c34 Fixes #4810
- Add objectTypeClass property to allow new CSS selector to target Plan object types in Timestrip views.;
2022-02-01 10:47:39 -08:00
2 changed files with 7 additions and 0 deletions

View File

@@ -10,6 +10,7 @@
</div> </div>
<div ref="objectViewWrapper" <div ref="objectViewWrapper"
class="c-object-view" class="c-object-view"
:class="objectTypeClass"
></div> ></div>
</div> </div>
</template> </template>
@@ -75,6 +76,9 @@ export default {
const viewKey = this.getViewKey(); const viewKey = this.getViewKey();
return this.domainObject && SupportedViewTypes.includes(viewKey); return this.domainObject && SupportedViewTypes.includes(viewKey);
},
objectTypeClass() {
return this.domainObject && ('is-object-type-' + this.domainObject.type);
} }
}, },
destroyed() { destroyed() {

View File

@@ -29,4 +29,7 @@
@include smallerControlButtons; @include smallerControlButtons;
} }
// Yet more brittle special case selecting...
.is-object-type-plan { display: contents; }
} }