mirror of https://github.com/docusealco/docuseal
				
				
				
			
							parent
							
								
									1435d55727
								
							
						
					
					
						commit
						45adee6ddf
					
				| @ -0,0 +1,9 @@ | |||||||
|  | export default class extends HTMLElement { | ||||||
|  |   connectedCallback () { | ||||||
|  |     this.querySelectorAll('a').forEach((link) => { | ||||||
|  |       if (document.location.pathname.startsWith(link.pathname)) { | ||||||
|  |         link.classList.add('bg-base-300') | ||||||
|  |       } | ||||||
|  |     }) | ||||||
|  |   } | ||||||
|  | } | ||||||
| @ -0,0 +1,33 @@ | |||||||
|  | <menu-active class="block"> | ||||||
|  |   <div class="mt-4 -ml-3.5"> | ||||||
|  |     <ul class="menu menu-compact px-2 w-52"> | ||||||
|  |       <li class="menu-title"><span>Settings</span></li> | ||||||
|  |       <li></li> | ||||||
|  |       <li> | ||||||
|  |         <a href="<%= settings_profile_index_path %>" class="hover:bg-base-300"> | ||||||
|  |           Profile | ||||||
|  |         </a> | ||||||
|  |       </li> | ||||||
|  |       <li> | ||||||
|  |         <a href="<%= settings_email_index_path %>" class="hover:bg-base-300"> | ||||||
|  |           Email | ||||||
|  |         </a> | ||||||
|  |       </li> | ||||||
|  |       <li> | ||||||
|  |         <a href="<%= settings_storage_index_path %>" class="hover:bg-base-300"> | ||||||
|  |           Storage | ||||||
|  |         </a> | ||||||
|  |       </li> | ||||||
|  |       <li> | ||||||
|  |         <a href="<%= settings_esign_index_path %>" class="hover:bg-base-300"> | ||||||
|  |           eSign | ||||||
|  |         </a> | ||||||
|  |       </li> | ||||||
|  |       <li> | ||||||
|  |         <a href="<%= settings_users_path %>" class="hover:bg-base-300"> | ||||||
|  |           Team | ||||||
|  |         </a> | ||||||
|  |       </li> | ||||||
|  |     </ul> | ||||||
|  |   </div> | ||||||
|  | </menu-active> | ||||||
					Loading…
					
					
				
		Reference in new issue