mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
ACS-8824 [ACA] View Details / The user cannot edit node properties af… (#10246)
* ACS-8824 [ACA] View Details / The user cannot edit node properties after failing to change node name with special characters * ACS-8824 [ACA] View Details / The user cannot edit node properties after failing to change node name with special characters
This commit is contained in:
@@ -17,7 +17,13 @@
|
||||
|
||||
import { inject, Injectable } from '@angular/core';
|
||||
import { Node } from '@alfresco/js-api';
|
||||
import { CardViewDateItemModel, CardViewTextItemModel, FileSizePipe, TranslationService } from '@alfresco/adf-core';
|
||||
import {
|
||||
CardViewDateItemModel,
|
||||
CardViewItemMatchValidator,
|
||||
CardViewTextItemModel,
|
||||
FileSizePipe,
|
||||
TranslationService
|
||||
} from '@alfresco/adf-core';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
@@ -37,7 +43,10 @@ export class BasicPropertiesService {
|
||||
label: 'CORE.METADATA.BASIC.NAME',
|
||||
value: node.name,
|
||||
key: 'properties.cm:name',
|
||||
editable: true
|
||||
editable: true,
|
||||
validators: [
|
||||
new CardViewItemMatchValidator('[\\/\\*\\\\"\\\\]')
|
||||
]
|
||||
}),
|
||||
new CardViewTextItemModel({
|
||||
label: 'CORE.METADATA.BASIC.TITLE',
|
||||
|
||||
Reference in New Issue
Block a user