Skip to content

Commit

Permalink
TASK: adjust behaviour for phone number link editor
Browse files Browse the repository at this point in the history
  • Loading branch information
andrehoffmann30 committed May 6, 2022
1 parent 476d9d1 commit f1ba1e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Neos.Ui/core/src/application/Dialog/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ const DialogWithValue: React.FC<{
const modelFromState = form.getState().values.linkTypeProps?.[linkType.id.split('.').join('_')]
let Preview = linkType.Preview;
let model = modelFromState;
if (!modelFromState || (linkType.id === 'Sitegeist.Archaeopteryx:Web' && !modelFromState?.urlWithoutProtocol)) {
if (!modelFromState || (linkType.id === 'Sitegeist.Archaeopteryx:Web' && !modelFromState?.urlWithoutProtocol) || (linkType.id === 'Sitegeist.Archaeopteryx:PhoneNumber' && !modelFromState?.phoneNumber)) {
Preview = exitingPreview;
model = existingModel;
}
Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/Plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -42589,7 +42589,7 @@ var DialogWithValue = function DialogWithValue(props) {
var modelFromState = (_a = form.getState().values.linkTypeProps) === null || _a === void 0 ? void 0 : _a[linkType.id.split('.').join('_')];
var Preview = linkType.Preview;
var model = modelFromState;
if (!modelFromState || linkType.id === 'Sitegeist.Archaeopteryx:Web' && !(modelFromState === null || modelFromState === void 0 ? void 0 : modelFromState.urlWithoutProtocol)) {
if (!modelFromState || linkType.id === 'Sitegeist.Archaeopteryx:Web' && !(modelFromState === null || modelFromState === void 0 ? void 0 : modelFromState.urlWithoutProtocol) || linkType.id === 'Sitegeist.Archaeopteryx:PhoneNumber' && !(modelFromState === null || modelFromState === void 0 ? void 0 : modelFromState.phoneNumber)) {
Preview = exitingPreview;
model = existingModel;
}
Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/Plugin.js.map

Large diffs are not rendered by default.

0 comments on commit f1ba1e3

Please sign in to comment.