mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACS-4448] Adding selectable options of mime types in folder rules add conditions (#3098)
* [ACS-4448] Adding selectable options of mime types in folder rules conditions. * [ACS-4448] Restructuring * PR comments * added unit tests * PR comments * unit tests * unit tests
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
export type RuleConditionFieldType = 'string' | 'number' | 'date' | 'type' | 'special';
|
||||
export type RuleConditionFieldType = 'string' | 'number' | 'date' | 'type' | 'special' | 'mimeType';
|
||||
|
||||
export interface RuleConditionField {
|
||||
name: string;
|
||||
@@ -31,6 +31,8 @@ export interface RuleConditionField {
|
||||
type: RuleConditionFieldType;
|
||||
}
|
||||
|
||||
export const comparatorHiddenForConditionFieldType: string[] = ['special', 'mimeType'];
|
||||
|
||||
export const ruleConditionFields: RuleConditionField[] = [
|
||||
{
|
||||
name: 'cm:name',
|
||||
@@ -45,7 +47,7 @@ export const ruleConditionFields: RuleConditionField[] = [
|
||||
{
|
||||
name: 'mimetype',
|
||||
label: 'ACA_FOLDER_RULES.RULE_DETAILS.FIELDS.MIMETYPE',
|
||||
type: 'string'
|
||||
type: 'mimeType'
|
||||
},
|
||||
{
|
||||
name: 'encoding',
|
||||
|
Reference in New Issue
Block a user