Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH Hide the open in new window checkbox from phone and email links #187

Merged

Conversation

emteknetnz
Copy link
Member

Issue #23

? _t(__CLASS__ . '.UPDATE_LINK', 'Update link')
: _t(__CLASS__ . '.CREATE_LINK', 'Create link');
? _t(__CLASS__ . '.UPDATE_LINK', 'Update link')
: _t(__CLASS__ . '.CREATE_LINK', 'Create link');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unrelated refactoring

@emteknetnz emteknetnz force-pushed the pulls/4/hide-checkbox branch from 8cc5717 to 09d94a1 Compare January 24, 2024 01:46
'file' => FileLink::class,
'email' => EmailLink::class,
'phone' => PhoneLink::class,
'testphone' => TestPhoneLink::class,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unrelated refactoring to make it easier to run unit tests locally when you have a custom link type in your project

FileLink::class,
EmailLink::class,
PhoneLink::class,
TestPhoneLink::class,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unrelated refactoring

FileLink::class,
EmailLink::class,
PhoneLink::class,
TestPhoneLink::class,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unrelated refactoring

$linkField = LinkField::create('LinkField');
$linkField->setAllowedTypes($enabled);
$json = json_decode($linkField->getTypesProps(), true);
$json = $this->removeCustomLinkTypes($json);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unrelated refactoring to make it easier to run unit tests locally when you have a custom link type in your project

src/Models/Link.php Outdated Show resolved Hide resolved
src/Models/Link.php Outdated Show resolved Hide resolved
@emteknetnz emteknetnz force-pushed the pulls/4/hide-checkbox branch from 09d94a1 to 7ef4494 Compare January 24, 2024 03:37
@emteknetnz emteknetnz force-pushed the pulls/4/hide-checkbox branch from 7ef4494 to 0c01fcf Compare January 24, 2024 03:39
Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GuySartorelli GuySartorelli merged commit f5d54ac into silverstripe:4 Jan 24, 2024
10 checks passed
@GuySartorelli GuySartorelli deleted the pulls/4/hide-checkbox branch January 24, 2024 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants