Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions src/Umbraco.Web.UI.Client/src/assets/lang/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ export default {
titleOptional: 'Title (optional)',
altTextOptional: 'Alternative text (optional)',
captionTextOptional: 'Caption (optional)',
trashed: 'Trashed',
type: 'Type',
unpublish: 'Unpublish',
unpublished: 'Unpublished',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@ export class UmbDocumentWorkspaceViewInfoElement extends UmbLitElement {
</uui-tag>
`;
}
case DocumentVariantStateModel.TRASHED:
return html`
<uui-tag color="danger" look="primary" label=${this.localize.term('content_trashed')}>
${this.localize.term('content_trashed')}
</uui-tag>
`;
default:
return html`
<uui-tag look="primary" label=${this.localize.term('content_notCreated')}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export class UmbMediaWorkspaceViewInfoElement extends UmbLitElement {

#renderGeneralSection() {
return html`
${this.#renderCreateDate()} ${this.#renderUpdateDate()}
${this.#renderTrashState()} ${this.#renderCreateDate()} ${this.#renderUpdateDate()}
<div class="general-item">
<strong><umb-localize key="content_mediaType">Media Type</umb-localize></strong>
<uui-ref-node-document-type
Expand All @@ -149,6 +149,20 @@ export class UmbMediaWorkspaceViewInfoElement extends UmbLitElement {
`;
}

#renderTrashState() {
if (!this._isTrashed) return nothing;

return html`
<div class="general-item">
<span>
<uui-tag color="danger" look="primary" label=${this.localize.term('content_trashed')}>
${this.localize.term('content_trashed')}
</uui-tag>
</span>
</div>
`;
}

#renderCreateDate() {
if (!this._createDate) return nothing;
return html`
Expand Down
Loading