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

Media Create view: Add missing fallback texts #11511

Merged
merged 1 commit into from
Oct 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/Umbraco.Web.UI.Client/src/views/media/create.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
<h5><localize key="create_createUnder">Create under</localize> {{currentNode.name}}</h5>

<div ng-if="allowedTypes && allowedTypes.length === 0">
<p class="abstract" ng-if="!hasSettingsAccess"><localize key="create_noMediaTypesWithNoSettingsAccess"></localize></p>
<p class="abstract" ng-if="!hasSettingsAccess"><localize key="create_noMediaTypesWithNoSettingsAccess">The selected media in the tree doesn't allow for any other media to be created below it.</localize></p>
<div ng-if="hasSettingsAccess">
<p class="abstract"><localize key="create_noMediaTypes"></localize></p>
<p class="abstract"><localize key="create_noMediaTypes">There are no allowed Media Types available for creating media here. You must enable these in <strong>Media Types
Types</strong> within the <strong>Settings</strong> section, by editing the <strong>Allowed child node
types</strong> under <strong>Permissions</strong>.</localize></p>
<a class="btn" href="#settings/mediaTypes/edit/{{mediaTypeId}}?view=permissions" role="button" ng-click="close()">
<localize key="create_noMediaTypesEditPermissions"></localize>
<localize key="create_noMediaTypesEditPermissions">Edit permissions for this Media Type</localize>
</a>
</div>
</div>
Expand Down