This repository was archived by the owner on Nov 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +25
-25
lines changed
block-grid/components/block-grid-block-inline
content/property-dataset-context
workspace/workspace-property-dataset Expand file tree Collapse file tree 7 files changed +25
-25
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ import { UmbBooleanState } from '@umbraco-cms/backoffice/observable-api';
1111export class UmbBlockGridInlinePropertyDatasetContext extends UmbControllerBase implements UmbPropertyDatasetContext {
1212 #entryContext: UmbBlockGridEntryContext ;
1313
14- #currentVariantCultureIsReadOnly = new UmbBooleanState ( false ) ;
15- public currentVariantCultureIsReadOnly = this . #currentVariantCultureIsReadOnly . asObservable ( ) ;
14+ #readOnly = new UmbBooleanState ( false ) ;
15+ public readOnly = this . #readOnly . asObservable ( ) ;
1616
1717 // default data:
1818
@@ -67,7 +67,7 @@ export class UmbBlockGridInlinePropertyDatasetContext extends UmbControllerBase
6767 * @returns {* } {boolean}
6868 * @memberof UmbBlockGridInlinePropertyDatasetContext
6969 */
70- getCurrentVariantCultureIsReadOnly ( ) : boolean {
71- return this . #currentVariantCultureIsReadOnly . getValue ( ) ;
70+ getReadOnly ( ) : boolean {
71+ return this . #readOnly . getValue ( ) ;
7272 }
7373}
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ import { UmbBooleanState } from '@umbraco-cms/backoffice/observable-api';
1212export class UmbBlockElementPropertyDatasetContext extends UmbControllerBase implements UmbPropertyDatasetContext {
1313 #elementManager: UmbBlockElementManager ;
1414
15- #currentVariantCultureIsReadOnly = new UmbBooleanState ( false ) ;
16- public currentVariantCultureIsReadOnly = this . #currentVariantCultureIsReadOnly . asObservable ( ) ;
15+ #readOnly = new UmbBooleanState ( false ) ;
16+ public readOnly = this . #readOnly . asObservable ( ) ;
1717
1818 // default data:
1919
@@ -41,7 +41,7 @@ export class UmbBlockElementPropertyDatasetContext extends UmbControllerBase imp
4141 this . observe (
4242 workspace . readOnlyState . isOn ,
4343 ( value ) => {
44- this . #currentVariantCultureIsReadOnly . setValue ( value ) ;
44+ this . #readOnly . setValue ( value ) ;
4545 } ,
4646 'umbObserveReadOnlyStates' ,
4747 ) ;
@@ -80,7 +80,7 @@ export class UmbBlockElementPropertyDatasetContext extends UmbControllerBase imp
8080 * @returns {* } {boolean}
8181 * @memberof UmbBlockGridInlinePropertyDatasetContext
8282 */
83- getCurrentVariantCultureIsReadOnly ( ) : boolean {
84- return this . #currentVariantCultureIsReadOnly . getValue ( ) ;
83+ getReadOnly ( ) : boolean {
84+ return this . #readOnly . getValue ( ) ;
8585 }
8686}
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ export class UmbContentPropertyDatasetContext<
3030 culture = this . #currentVariant. asObservablePart ( ( x ) => x ?. culture ) ;
3131 segment = this . #currentVariant. asObservablePart ( ( x ) => x ?. segment ) ;
3232
33- #currentVariantCultureIsReadOnly = new UmbBooleanState ( false ) ;
34- public currentVariantCultureIsReadOnly = this . #currentVariantCultureIsReadOnly . asObservable ( ) ;
33+ #readOnly = new UmbBooleanState ( false ) ;
34+ public readOnly = this . #readOnly . asObservable ( ) ;
3535
3636 getEntityType ( ) : string {
3737 return this . #workspace. getEntityType ( ) ;
@@ -49,8 +49,8 @@ export class UmbContentPropertyDatasetContext<
4949 return this . #workspace. getVariant ( this . #variantId) ;
5050 }
5151
52- getCurrentVariantCultureIsReadOnly ( ) {
53- return this . #currentVariantCultureIsReadOnly . getValue ( ) ;
52+ getReadOnly ( ) {
53+ return this . #readOnly . getValue ( ) ;
5454 }
5555
5656 constructor (
@@ -76,7 +76,7 @@ export class UmbContentPropertyDatasetContext<
7676 this . #workspace. readOnlyState . states ,
7777 ( states ) => {
7878 const isReadOnly = states . some ( ( state ) => state . variantId . equal ( this . #variantId) ) ;
79- this . #currentVariantCultureIsReadOnly . setValue ( isReadOnly ) ;
79+ this . #readOnly . setValue ( isReadOnly ) ;
8080 } ,
8181 'umbObserveReadOnlyStates' ,
8282 ) ;
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ export class UmbPropertyDatasetContextBase
2424 private _entityType ! : string ;
2525 private _unique ! : string ;
2626
27- #currentVariantCultureIsReadOnly = new UmbBooleanState ( false ) ;
28- public currentVariantCultureIsReadOnly = this . #currentVariantCultureIsReadOnly . asObservable ( ) ;
27+ #readOnly = new UmbBooleanState ( false ) ;
28+ public readOnly = this . #readOnly . asObservable ( ) ;
2929
3030 getEntityType ( ) {
3131 return this . _entityType ;
@@ -85,7 +85,7 @@ export class UmbPropertyDatasetContextBase
8585 * @return {* } {boolean}
8686 * @memberof UmbBlockGridInlinePropertyDatasetContext
8787 */
88- getCurrentVariantCultureIsReadOnly ( ) : boolean {
89- return this . #currentVariantCultureIsReadOnly . getValue ( ) ;
88+ getReadOnly ( ) : boolean {
89+ return this . #readOnly . getValue ( ) ;
9090 }
9191}
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ export interface UmbPropertyDatasetContext extends UmbContext {
2525 getName ( ) : string | undefined ;
2626 readonly name : Observable < string | undefined > ;
2727
28- getCurrentVariantCultureIsReadOnly ( ) : boolean ;
29- readonly currentVariantCultureIsReadOnly : Observable < boolean > ;
28+ getReadOnly ( ) : boolean ;
29+ readonly readOnly : Observable < boolean > ;
3030
3131 // Should it be possible to get the properties as a list of property aliases?
3232 //readonly properties: Observable<Array<string>>;
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ export class UmbPropertyContext<ValueType = any> extends UmbContextBase<UmbPrope
128128 'observeValue' ,
129129 ) ;
130130
131- this . observe ( this . #datasetContext. currentVariantCultureIsReadOnly , ( value ) => {
131+ this . observe ( this . #datasetContext. readOnly , ( value ) => {
132132 this . #isReadOnly. setValue ( value ) ;
133133 } ) ;
134134 }
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ export class UmbInvariantWorkspacePropertyDatasetContext<
1515 extends UmbContextBase < UmbPropertyDatasetContext >
1616 implements UmbPropertyDatasetContext , UmbNameablePropertyDatasetContext
1717{
18- #currentVariantCultureIsReadOnly = new UmbBooleanState ( false ) ;
19- public currentVariantCultureIsReadOnly = this . #currentVariantCultureIsReadOnly . asObservable ( ) ;
18+ #readOnly = new UmbBooleanState ( false ) ;
19+ public readOnly = this . #readOnly . asObservable ( ) ;
2020
2121 #workspace: WorkspaceType ;
2222
@@ -66,7 +66,7 @@ export class UmbInvariantWorkspacePropertyDatasetContext<
6666 return this . #workspace. setPropertyValue ( propertyAlias , value ) ;
6767 }
6868
69- getCurrentVariantCultureIsReadOnly ( ) {
70- return this . #currentVariantCultureIsReadOnly . getValue ( ) ;
69+ getReadOnly ( ) {
70+ return this . #readOnly . getValue ( ) ;
7171 }
7272}
You can’t perform that action at this time.
0 commit comments