This repository was archived by the owner on Nov 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
src/packages/documents/documents/tree/tree-item Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ export class UmbDocumentTreeItemElement extends UmbTreeItemElementBase<UmbDocume
7474 ${ this . item ?. documentType . icon
7575 ? html `
7676 <umb- icon id= "icon" slot = "icon" name = "${ this . item . documentType . icon } " > </ umb- icon>
77+ ${ this . item . isProtected ? this . #renderIsProtectedIcon( ) : nothing }
7778 <!- -
7879 / / TODO: implement cor rect status symbol
7980 <span id= "status-symbol" > </ span>
@@ -90,6 +91,10 @@ export class UmbDocumentTreeItemElement extends UmbTreeItemElementBase<UmbDocume
9091 > ` ;
9192 }
9293
94+ #renderIsProtectedIcon( ) {
95+ return html `<umb- icon id= "icon-lock" slot = "icon" name = "icon-lock" title = "Protected" > </ umb- icon> ` ;
96+ }
97+
9398 static styles = [
9499 UmbTextStyles ,
95100 css `
@@ -113,6 +118,30 @@ export class UmbDocumentTreeItemElement extends UmbTreeItemElementBase<UmbDocume
113118 border-radius : 100% ;
114119 }
115120
121+ # icon-lock {
122+ position : absolute;
123+ bottom : -5px ;
124+ right : -5px ;
125+ font-size : 10px ;
126+ background : var (--uui-color-surface );
127+ width : 14px ;
128+ height : 14px ;
129+ border-radius : 100% ;
130+ line-height : 14px ;
131+ }
132+
133+ : hover # icon-lock {
134+ background : var (--uui-color-surface-emphasis );
135+ }
136+
137+ [active ] # icon-lock {
138+ background : var (--uui-color-current );
139+ }
140+
141+ [active ]: hover # icon-lock {
142+ background : var (--uui-color-current-emphasis );
143+ }
144+
116145 .draft {
117146 opacity : 0.6 ;
118147 }
You can’t perform that action at this time.
0 commit comments