Merge branch 'fix/control-classnames' into 'release'
Classname update for tests See merge request theappsmith/internal-tools-client!464
This commit is contained in:
commit
c57e228fec
|
|
@ -49,6 +49,7 @@ class ImageComponent extends React.Component<
|
|||
style={{
|
||||
display: "none",
|
||||
}}
|
||||
alt={this.props.widgetName}
|
||||
src={this.props.imageUrl}
|
||||
onError={this.onImageError}
|
||||
onLoad={this.onImageLoad}
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ const handlePageNameArgSelect = (
|
|||
`{{$1(${args.join(",")})}}`,
|
||||
);
|
||||
};
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
const handlePageParamsArgSelect = (
|
||||
changeValue: ValueType,
|
||||
currentValue: string,
|
||||
|
|
@ -111,6 +111,7 @@ const handlePageParamsArgSelect = (
|
|||
`{{$1(${args.join(",")})}}`,
|
||||
);
|
||||
};
|
||||
/* eslint-enable @typescript-eslint/no-unused-vars */
|
||||
|
||||
const handleTextArgChange = (
|
||||
changeValue: ValueType,
|
||||
|
|
@ -172,6 +173,7 @@ const getPageNameSelectedValue = (value: string) => {
|
|||
const matches = [...value.matchAll(ACTION_TRIGGER_REGEX)];
|
||||
return matches.length ? matches[0][2].split(",")[0] : "none";
|
||||
};
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
|
||||
const getPageParamsSelectedValue = (value: ValueType) => {
|
||||
const match = getPageSelectedParamsObject(value as string);
|
||||
|
|
@ -184,6 +186,7 @@ const getPageParamsSelectedValue = (value: ValueType) => {
|
|||
});
|
||||
return keyPairs;
|
||||
};
|
||||
/* eslint-enable @typescript-eslint/no-unused-vars */
|
||||
|
||||
const getPageSelectedParamsObject = (value: string) => {
|
||||
const matches = [...value.matchAll(ACTION_TRIGGER_REGEX)];
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ function UnderlinedLabel({
|
|||
}
|
||||
: {}
|
||||
}
|
||||
className={`t--property-control-label`}
|
||||
>
|
||||
{label}
|
||||
</label>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { call, takeLatest, put, all, delay } from "redux-saga/effects";
|
||||
import { call, takeLatest, put, all } from "redux-saga/effects";
|
||||
import {
|
||||
ReduxAction,
|
||||
ReduxActionWithPromise,
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import {
|
|||
URL_HTTP_VALIDATION_ERROR,
|
||||
} from "constants/messages";
|
||||
import { getTextArgValue } from "components/editorComponents/DynamicActionCreator";
|
||||
const URL_REGEX = /^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/;
|
||||
const URL_REGEX = /^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([-.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/;
|
||||
|
||||
export const VALIDATORS: Record<ValidationType, Validator> = {
|
||||
[VALIDATION_TYPES.TEXT]: (value: any): ValidationResponse => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user