File tree Expand file tree Collapse file tree 1 file changed +14
-26
lines changed
web/src/app/admin/assistants Expand file tree Collapse file tree 1 file changed +14
-26
lines changed Original file line number Diff line number Diff line change @@ -241,15 +241,9 @@ export function PersonasTable({
241
241
< div
242
242
key = "is_default_persona"
243
243
onClick = { ( ) => {
244
- if ( isEditable ) {
245
- openDefaultModal ( persona ) ;
246
- }
244
+ openDefaultModal ( persona ) ;
247
245
} }
248
- className = { `px-1 py-0.5 rounded flex ${
249
- isEditable
250
- ? "hover:bg-accent-background-hovered cursor-pointer"
251
- : ""
252
- } select-none w-fit`}
246
+ className = { `px-1 py-0.5 rounded flex hover:bg-accent-background-hovered cursor-pointer select-none w-fit` }
253
247
>
254
248
< div className = "my-auto flex-none w-22" >
255
249
{ ! persona . is_default_persona ? (
@@ -265,26 +259,20 @@ export function PersonasTable({
265
259
< div
266
260
key = "is_visible"
267
261
onClick = { async ( ) => {
268
- if ( isEditable ) {
269
- const response = await togglePersonaVisibility (
270
- persona . id ,
271
- persona . is_visible
272
- ) ;
273
- if ( response . ok ) {
274
- refreshPersonas ( ) ;
275
- } else {
276
- setPopup ( {
277
- type : "error" ,
278
- message : `Failed to update persona - ${ await response . text ( ) } ` ,
279
- } ) ;
280
- }
262
+ const response = await togglePersonaVisibility (
263
+ persona . id ,
264
+ persona . is_visible
265
+ ) ;
266
+ if ( response . ok ) {
267
+ refreshPersonas ( ) ;
268
+ } else {
269
+ setPopup ( {
270
+ type : "error" ,
271
+ message : `Failed to update persona - ${ await response . text ( ) } ` ,
272
+ } ) ;
281
273
}
282
274
} }
283
- className = { `px-1 py-0.5 rounded flex ${
284
- isEditable
285
- ? "hover:bg-accent-background-hovered cursor-pointer"
286
- : ""
287
- } select-none w-fit`}
275
+ className = { `px-1 py-0.5 rounded flex hover:bg-accent-background-hovered cursor-pointer select-none w-fit` }
288
276
>
289
277
< div className = "my-auto w-12" >
290
278
{ ! persona . is_visible ? (
You can’t perform that action at this time.
0 commit comments