Skip to content

Commit aced691

Browse files
authored
Content editing: Correct handling of read-only of name field when A action is removed in SendingContentNotification (#20072)
Set header name to readonly
1 parent dc0005f commit aced691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Umbraco.Web.UI.Client/src/common/directives/components/content/umbvariantcontent.directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109

110110
function onAppChanged(activeApp) {
111111
// set the name field to readonly if the user don't have update permissions or the active content app is not "Content" or "Info"
112-
const allowUpdate = vm.editor.content.allowedActions.includes('A');
112+
const allowUpdate = vm.content.allowedActions.includes('A');
113113
const isContentBasedApp = activeApp && contentAppHelper.isContentBasedApp(activeApp);
114114
vm.nameReadonly = !allowUpdate || !isContentBasedApp;
115115
}

0 commit comments

Comments
 (0)