Skip to content

Commit

Permalink
QA-15249 Using maxNameSize for renaming validation
Browse files Browse the repository at this point in the history
  • Loading branch information
r3dm1ke committed Nov 14, 2024
1 parent 7e63156 commit 64fcf51
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const CreateFolderDialog = ({path, contentType, onExit}) => {
<TextField
fullWidth
autoFocus
inputProps={{maxLength: 32}}
inputProps={{maxLength: contextJsParameters.config.maxNameSize}}
error={Boolean(errMsg)}
value={name}
id="folder-name"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const RenameDialog = ({path, contentType, onExit}) => {
<TextField
fullWidth
autoFocus
inputProps={{maxLength: 32}}
inputProps={{maxLength: contextJsParameters.config.maxNameSize}}
error={Boolean(errMsg)}
value={name}
id="folder-name"
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/configs/jcontent.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
contextJsParameters.config.links['sql2CheatSheet']="<%= SettingsBean.getInstance().getString("sql2CheatSheet.link", null) %>";
contextJsParameters.config.links['importAcademy']="<%= SettingsBean.getInstance().getString("importAcademy.link", "https://academy.jahia.com/documentation/digital-experience-manager/7.3/modules/content-and-media-manager#exporting_importing_contents") %>";
contextJsParameters.config.jcontent = <%= new JSONObject(BundleUtils.getOsgiService(ConfigService.class, null).getConfig("org.jahia.modules.jcontent").getRawProperties()).toString() %>;
<%
SettingsBean settingsBean = SettingsBean.getInstance();
%>
contextJsParameters.config.maxNameSize=<%= settingsBean.getMaxNameSize() %>;

0 comments on commit 64fcf51

Please sign in to comment.