Skip to content

Commit 0aa74ee

Browse files
committed
Show video not owned warning in Privacy and Rating panel
1 parent b46af9b commit 0aa74ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

projects/packages/videopress/src/client/block-editor/blocks/video/components/privacy-and-rating-panel/privacy-and-rating-settings.native.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
VIDEO_RATING_PG_13,
1616
VIDEO_RATING_R_17,
1717
} from '../../../../../state/constants';
18+
import VideoNotOwnedWarning from '../video-not-owned-warning';
1819

1920
/**
2021
* React component that renders the settings within the privacy and ratings panel.
@@ -126,6 +127,8 @@ export default function PrivacyAndRatingSettings( {
126127
) }
127128
disabled={ ! videoBelongToSite }
128129
/>
130+
131+
{ ! videoBelongToSite && <VideoNotOwnedWarning /> }
129132
</PanelBody>
130133
);
131134
}

0 commit comments

Comments
 (0)