Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,6 @@ export class UmbBlockGridEntryElement extends UmbLitElement implements UmbProper
}

#renderEditAction() {
if (this._isReadOnly) return nothing;
return html`
${when(
this._showContentEdit && this._workspaceEditContentPath,
Expand Down Expand Up @@ -616,7 +615,6 @@ export class UmbBlockGridEntryElement extends UmbLitElement implements UmbProper
}

#renderEditSettingsAction() {
if (this._isReadOnly) return nothing;
return html`
${this._hasSettings && this._workspaceEditSettingsPath
? html`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,6 @@ export class UmbBlockListEntryElement extends UmbLitElement implements UmbProper
}

#renderEditContentAction() {
if (this._isReadOnly) return nothing;
return this._showContentEdit && this._workspaceEditContentPath
? html`<uui-button
label="edit"
Expand All @@ -479,7 +478,6 @@ export class UmbBlockListEntryElement extends UmbLitElement implements UmbProper
}

#renderEditSettingsAction() {
if (this._isReadOnly) return nothing;
return html`
${this._hasSettings && this._workspaceEditSettingsPath
? html`<uui-button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,6 @@ export class UmbBlockRteEntryElement extends UmbLitElement implements UmbPropert
}

#renderEditAction() {
if (this._isReadOnly) return nothing;
return this._showContentEdit && this._workspaceEditContentPath
? html`<uui-button
label="edit"
Expand All @@ -394,7 +393,6 @@ export class UmbBlockRteEntryElement extends UmbLitElement implements UmbPropert
}

#renderEditSettingsAction() {
if (this._isReadOnly) return nothing;
return html`
${this._hasSettings && this._workspaceEditSettingsPath
? html`<uui-button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,6 @@ export class UmbBlockSingleEntryElement extends UmbLitElement implements UmbProp
}

#renderEditContentAction() {
if (this._isReadOnly) return nothing;
return this._showContentEdit && this._workspaceEditContentPath
? html`<uui-button
label="edit"
Expand All @@ -464,7 +463,6 @@ export class UmbBlockSingleEntryElement extends UmbLitElement implements UmbProp
}

#renderEditSettingsAction() {
if (this._isReadOnly) return nothing;
return html`
${this._hasSettings && this._workspaceEditSettingsPath
? html`<uui-button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,8 @@ export class UmbBlockWorkspaceContext<LayoutDataType extends UmbBlockLayoutBaseM
};

this.readOnlyGuard?.addRule(rule);
this.content.propertyWriteGuard.addRule({ unique, permitted: false });
this.settings.propertyWriteGuard.addRule({ unique, permitted: false });
} else {
this.readOnlyGuard?.removeRule(unique);
this.content.propertyWriteGuard.removeRule(unique);
this.settings.propertyWriteGuard.removeRule(unique);
}
},
'observeIsReadOnly',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ export const manifests: Array<UmbExtensionManifest> = [
alias: 'Umb.Condition.BlockWorkspaceIsExposed',
match: false,
},
{
alias: 'Umb.Condition.BlockWorkspaceIsReadOnly',
match: false,
},
],
},
{
Expand All @@ -51,10 +47,6 @@ export const manifests: Array<UmbExtensionManifest> = [
{
alias: 'Umb.Condition.BlockWorkspaceIsExposed',
},
Comment thread
nielslyngsoe marked this conversation as resolved.
{
alias: 'Umb.Condition.BlockWorkspaceIsReadOnly',
match: false,
},
],
},
{
Expand Down
Loading