This repository was archived by the owner on May 12, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
routes/(protected)/user/entitlements Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 selectedRole? : string ;
1212 roleScope? : " all" | " system" | " bank" ;
1313 disabled? : boolean ;
14+ hideScopeToggle? : boolean ;
1415 }
1516
1617 let {
1718 roles,
1819 selectedRole = $bindable (" " ),
1920 roleScope = $bindable <" all" | " system" | " bank" >(" all" ),
2021 disabled = false ,
22+ hideScopeToggle = false ,
2123 }: Props = $props ();
2224
2325 let searchQuery = $state (" " );
6870 </div >
6971
7072 <!-- Scope Toggle -->
71- <div class =" scope-toggle" >
72- <button
73- type =" button"
74- class =" scope-button"
75- class:active ={roleScope === " all" }
76- onclick ={() => {
77- roleScope = " all" ;
78- selectedRole = " " ;
79- }}
80- {disabled }
81- >
82- All
83- </button >
84- <button
85- type =" button"
86- class =" scope-button"
87- class:active ={roleScope === " system" }
88- onclick ={() => {
89- roleScope = " system" ;
90- selectedRole = " " ;
91- }}
92- {disabled }
93- >
94- <Globe size ={14 } />
95- System
96- </button >
97- <button
98- type =" button"
99- class =" scope-button"
100- class:active ={roleScope === " bank" }
101- onclick ={() => {
102- roleScope = " bank" ;
103- selectedRole = " " ;
104- }}
105- {disabled }
106- >
107- <Building2 size ={14 } />
108- Bank
109- </button >
110- </div >
73+ {#if ! hideScopeToggle }
74+ <div class =" scope-toggle" >
75+ <button
76+ type =" button"
77+ class =" scope-button"
78+ class:active ={roleScope === " all" }
79+ onclick ={() => {
80+ roleScope = " all" ;
81+ selectedRole = " " ;
82+ }}
83+ {disabled }
84+ >
85+ All
86+ </button >
87+ <button
88+ type =" button"
89+ class =" scope-button"
90+ class:active ={roleScope === " system" }
91+ onclick ={() => {
92+ roleScope = " system" ;
93+ selectedRole = " " ;
94+ }}
95+ {disabled }
96+ >
97+ <Globe size ={14 } />
98+ System
99+ </button >
100+ <button
101+ type =" button"
102+ class =" scope-button"
103+ class:active ={roleScope === " bank" }
104+ onclick ={() => {
105+ roleScope = " bank" ;
106+ selectedRole = " " ;
107+ }}
108+ {disabled }
109+ >
110+ <Building2 size ={14 } />
111+ Bank
112+ </button >
113+ </div >
114+ {/if }
111115 </div >
112116
113117 <!-- Role Selection -->
You can’t perform that action at this time.
0 commit comments