Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic committed Mar 11, 2024
1 parent d444677 commit 55d91e4
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 29 deletions.
8 changes: 3 additions & 5 deletions src/Blocks/components/form/assets/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1277,11 +1277,9 @@ export class Utils {
for(const [key, value] of Object.entries(outputItems)) {
const itemElement = outputElement.querySelectorAll(`${this.state.getStateSelector('resultOutputItem', true)}[${this.state.getStateAttribute('resultOutputItemKey')}="${key}"][${this.state.getStateAttribute('resultOutputItemValue')}="${value}"]`);

if (itemElement.length) {
itemElement.forEach((item) => {
item.classList.remove(this.state.getStateSelector('isHidden'));
});
}
itemElement.forEach((item) => {
item.classList.remove(this.state.getStateSelector('isHidden'));
});
}
}

Expand Down
38 changes: 19 additions & 19 deletions src/Blocks/components/input/components/input-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,27 @@ export const InputEditor = (attributes) => {
selector(additionalClass, additionalClass),
]);

let additionalProps = {};

if (inputType === 'range') {
additionalProps = {
min: inputMin,
max: inputMax,
step: inputStep,
value: inputValue ?? inputMin,
};
}

const input = (
<>
{inputType === 'range' ?
<input
className={inputClass}
placeholder={inputPlaceholder}
type={'range'}
readOnly
min={inputMin}
max={inputMax}
step={inputStep}
value={inputValue ?? inputMin}
/> :
<input
className={inputClass}
value={inputValue}
placeholder={inputPlaceholder}
type={inputType}
readOnly
/>
}
<input
className={inputClass}
value={inputValue}
placeholder={inputPlaceholder}
type={inputType}
readOnly
{...additionalProps}
/>

<MissingName value={inputName} />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ export const FormSelectorEditor = ({
{!hasInnerBlocks &&
<Placeholder
icon={icons.form}
label={<span className='es-font-weight-400'>{__('Eightshift Forms', 'productive')}</span>}
label={<span className='es-font-weight-400'>{__('Eightshift Forms', 'eightshift-forms')}</span>}
className='es-max-w-108 es-rounded-3! es-mx-auto! es-font-weight-400 es-color-cool-gray-500! es-nested-color-current!'
>
<h4 className='es-mb-0! es-mx-0! es-mt-1! es-text-5 es-font-weight-500 es-color-pure-black es-min-w-full {'>{__('What type is your new form?', 'productive')}</h4>
<h4 className='es-mb-0! es-mx-0! es-mt-1! es-text-5 es-font-weight-500 es-color-pure-black es-min-w-full {'>{__('What type is your new form?', 'eightshift-forms')}</h4>
{forms.length > 0 &&
<div className='es-h-spaced-wrap es-gap-2!'>
{forms.map((form, index) => {
Expand Down
2 changes: 1 addition & 1 deletion src/Blocks/custom/forms/components/forms-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const FormsEditor = ({
return (
<Placeholder
icon={icons.form}
label={<span className='es-font-weight-400'>{__('Eightshift Forms', 'productive')}</span>}
label={<span className='es-font-weight-400'>{__('Eightshift Forms', 'eightshift-forms')}</span>}
className='es-max-w-80 es-rounded-3! es-mx-auto! es-font-weight-400 es-color-cool-gray-500! es-nested-color-current!'
>
<AsyncSelect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const ResultOutputItemOptions = ({
const resultOutputItemValue = checkAttr('resultOutputItemValue', attributes, manifest);

return (
<PanelBody title={__('Result Item', 'infobip')}>
<PanelBody title={__('Result Item', 'eightshift-forms')}>
<TextControl
label={<IconLabel icon={icons.id} label={__('Variable Name', 'eightshift-forms')} />}
value={resultOutputItemName}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const ResultOutputEditor = ({
return (
<Placeholder
icon={icons.form}
label={<span className='es-font-weight-400'>{__('Eightshift Forms - Result output', 'productive')}</span>}
label={<span className='es-font-weight-400'>{__('Eightshift Forms - Result output', 'eightshift-forms')}</span>}
className='es-max-w-80 es-rounded-3! es-mx-auto! es-font-weight-400 es-color-cool-gray-500! es-nested-color-current!'
>
<AsyncSelect
Expand Down

0 comments on commit 55d91e4

Please sign in to comment.