@@ -1373,6 +1373,7 @@ Logic.registerPanel(P_CONTAINER_ASSIGNMENTS, {
1373
1373
1374
1374
// Populating the panel: name and icon
1375
1375
document . getElementById ( "edit-assignments-title" ) . textContent = identity . name ;
1376
+ document . getElementById ( "edit-sites-assigned" ) . setAttribute ( "data-identity-color" , identity . color ) ;
1376
1377
1377
1378
const userContextId = Logic . currentUserContextId ( ) ;
1378
1379
const assignments = await Logic . getAssignmentObjectByContainer ( userContextId ) ;
@@ -1423,7 +1424,7 @@ Logic.registerPanel(P_CONTAINER_ASSIGNMENTS, {
1423
1424
} ) ;
1424
1425
// Wildcard click-to-toggle subdomains
1425
1426
trElement . querySelectorAll ( ".subdomain" ) . forEach ( ( subdomainLink ) => {
1426
- subdomainLink . addEventListener ( "click" , async ( e ) => {
1427
+ subdomainLink . addEventListener ( "click" , ( e ) => {
1427
1428
const wildcardHostname = e . target . getAttribute ( "data-wildcardHostname" ) ;
1428
1429
Utils . setWildcardHostnameForAssignment ( assumedUrl , wildcardHostname ) ;
1429
1430
if ( wildcardHostname ) {
@@ -1450,14 +1451,14 @@ Logic.registerPanel(P_CONTAINER_ASSIGNMENTS, {
1450
1451
if ( wildcardHostname && wildcardHostname !== hostname ) {
1451
1452
if ( hostname . endsWith ( wildcardHostname ) ) {
1452
1453
return {
1453
- wildcard : hostname . substring ( 0 , hostname . length - wildcardHostname . length ) ,
1454
+ wildcard : "★" ,
1454
1455
remaining : wildcardHostname
1455
1456
} ;
1456
1457
} else {
1457
1458
// In case something got corrupted, allow user to fix error
1458
- // by clicking "____" link to clear corrupted wildcard hostname
1459
+ // by clicking '★' link to clear corrupted wildcard hostname
1459
1460
return {
1460
- wildcard : "___ " ,
1461
+ wildcard : "★ " ,
1461
1462
remaining : hostname
1462
1463
} ;
1463
1464
}
@@ -1476,6 +1477,7 @@ Logic.registerPanel(P_CONTAINER_ASSIGNMENTS, {
1476
1477
// Add wildcard subdomain(s)
1477
1478
if ( subdomains . wildcard ) {
1478
1479
result . appendChild ( this . assignmentSubdomainLink ( null , subdomains . wildcard ) ) ;
1480
+ result . appendChild ( document . createTextNode ( "." ) ) ;
1479
1481
}
1480
1482
1481
1483
// Add non-wildcard subdomains
@@ -1499,6 +1501,7 @@ Logic.registerPanel(P_CONTAINER_ASSIGNMENTS, {
1499
1501
result . className = "subdomain" ;
1500
1502
if ( wildcardHostnameOnClick ) {
1501
1503
result . setAttribute ( "data-wildcardHostname" , wildcardHostnameOnClick ) ;
1504
+ result . title = `*.${ wildcardHostnameOnClick } ` ;
1502
1505
} else {
1503
1506
result . classList . add ( "wildcardSubdomain" ) ;
1504
1507
}
0 commit comments