fix: Issues #223 done.

This commit is contained in:
chiayin
2024-03-04 17:19:17 +08:00
parent aad3e998f6
commit e8af9f93ec

View File

@@ -25,6 +25,9 @@ export async function saveFilter(addFilterId) {
input: 'text', input: 'text',
inputPlaceholder: 'Enter Filter Name.', inputPlaceholder: 'Enter Filter Name.',
inputValue: fileName, inputValue: fileName,
inputAttributes: {
'maxlength': 200,
},
inputValidator: (value) => { inputValidator: (value) => {
if (!value) return 'You need to write something!'; if (!value) return 'You need to write something!';
fileName = value; fileName = value;
@@ -109,6 +112,9 @@ export async function saveConformance(addConformanceCreateCheckId) {
input: 'text', input: 'text',
inputPlaceholder: 'Enter Rule Name.', inputPlaceholder: 'Enter Rule Name.',
inputValue: fileName, inputValue: fileName,
inputAttributes: {
'maxlength': 200,
},
inputValidator: (value) => { inputValidator: (value) => {
if (!value) return 'You need to write something!'; if (!value) return 'You need to write something!';
fileName = value; fileName = value;
@@ -307,6 +313,9 @@ export async function renameModal(rename, type, id, baseName) {
input: 'text', input: 'text',
inputPlaceholder: 'Enter File Name.', inputPlaceholder: 'Enter File Name.',
inputValue: fileName, inputValue: fileName,
inputAttributes: {
'maxlength': 200,
},
inputValidator: value => { inputValidator: value => {
if(!value) return 'You need to write something!'; if(!value) return 'You need to write something!';
fileName = value; fileName = value;