Skip to content

Commit 01b9e26

Browse files
committed
Merge branch 'PV-fix-bug-with-alert' into 'master3'
MAGETWO-44332: After click to add video button appears alert message Fix text See merge request !138
2 parents 6dda034 + 0274021 commit 01b9e26

File tree

3 files changed

+4
-9
lines changed
  • app

3 files changed

+4
-9
lines changed

app/code/Magento/ProductVideo/Block/Adminhtml/Product/Edit/NewVideo.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,16 +270,14 @@ protected function addMediaRoleAttributes(Fieldset $fieldset)
270270
*/
271271
protected function getNoteVideoUrl()
272272
{
273-
$result = __('Youtube and Vimeo services are supported.');
273+
$result = __('YouTube and Vimeo supported.');
274274
if (is_null($this->mediaHelper->getYouTubeApiKey())) {
275275
$result = __(
276-
'The vimeo service is supported,'
277-
. ' in order to add an support for the youtube service'
278-
. ' please <a href="%1">specify</a> an youtube API key within a system configurations.'
276+
'Vimeo supported.<br>'
277+
. 'To add YouTube video, please <a href="%1">enter YouTube API Key</a> first.'
279278
,
280279
$this->getConfigApiKeyUrl()
281280
);
282-
$result = '<div class="note_youtube_api_key">' . $result . '</div>';
283281
}
284282
return $result;
285283
}

app/code/Magento/ProductVideo/etc/adminhtml/system.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<group id="product_video" translate="label" type="text" sortOrder="350" showInDefault="1" showInWebsite="1" showInStore="0">
1212
<label>Product Video</label>
1313
<field id="youtube_api_key" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="0">
14-
<label>Youtube API key</label>
14+
<label>YouTube API Key</label>
1515
</field>
1616
</group>
1717
</section>

app/design/adminhtml/Magento/backend/Magento_ProductVideo/web/css/source/_module.less

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,3 @@
234234
.image.base-image:hover .image-label {
235235
display: none;
236236
}
237-
.note .note_youtube_api_key {
238-
background-color: #fffbbb;
239-
}

0 commit comments

Comments
 (0)