@@ -1377,6 +1377,7 @@ Logic.registerPanel(P_CONTAINER_ASSIGNMENTS, {
1377
1377
1378
1378
// Populating the panel: name and icon
1379
1379
document . getElementById ( "edit-assignments-title" ) . textContent = identity . name ;
1380
+ document . getElementById ( "edit-sites-assigned" ) . setAttribute ( "data-identity-color" , identity . color ) ;
1380
1381
1381
1382
const userContextId = Logic . currentUserContextId ( ) ;
1382
1383
const assignments = await Logic . getAssignmentObjectByContainer ( userContextId ) ;
@@ -1427,7 +1428,7 @@ Logic.registerPanel(P_CONTAINER_ASSIGNMENTS, {
1427
1428
} ) ;
1428
1429
// Wildcard click-to-toggle subdomains
1429
1430
trElement . querySelectorAll ( ".subdomain" ) . forEach ( ( subdomainLink ) => {
1430
- subdomainLink . addEventListener ( "click" , async ( e ) => {
1431
+ subdomainLink . addEventListener ( "click" , ( e ) => {
1431
1432
const wildcardHostname = e . target . getAttribute ( "data-wildcardHostname" ) ;
1432
1433
Utils . setWildcardHostnameForAssignment ( assumedUrl , wildcardHostname ) ;
1433
1434
if ( wildcardHostname ) {
@@ -1454,14 +1455,14 @@ Logic.registerPanel(P_CONTAINER_ASSIGNMENTS, {
1454
1455
if ( wildcardHostname && wildcardHostname !== hostname ) {
1455
1456
if ( hostname . endsWith ( wildcardHostname ) ) {
1456
1457
return {
1457
- wildcard : hostname . substring ( 0 , hostname . length - wildcardHostname . length ) ,
1458
+ wildcard : "★" ,
1458
1459
remaining : wildcardHostname
1459
1460
} ;
1460
1461
} else {
1461
1462
// In case something got corrupted, allow user to fix error
1462
- // by clicking "____" link to clear corrupted wildcard hostname
1463
+ // by clicking '★' link to clear corrupted wildcard hostname
1463
1464
return {
1464
- wildcard : "___ " ,
1465
+ wildcard : "★ " ,
1465
1466
remaining : hostname
1466
1467
} ;
1467
1468
}
@@ -1480,6 +1481,7 @@ Logic.registerPanel(P_CONTAINER_ASSIGNMENTS, {
1480
1481
// Add wildcard subdomain(s)
1481
1482
if ( subdomains . wildcard ) {
1482
1483
result . appendChild ( this . assignmentSubdomainLink ( null , subdomains . wildcard ) ) ;
1484
+ result . appendChild ( document . createTextNode ( "." ) ) ;
1483
1485
}
1484
1486
1485
1487
// Add non-wildcard subdomains
@@ -1503,6 +1505,7 @@ Logic.registerPanel(P_CONTAINER_ASSIGNMENTS, {
1503
1505
result . className = "subdomain" ;
1504
1506
if ( wildcardHostnameOnClick ) {
1505
1507
result . setAttribute ( "data-wildcardHostname" , wildcardHostnameOnClick ) ;
1508
+ result . title = `*.${ wildcardHostnameOnClick } ` ;
1506
1509
} else {
1507
1510
result . classList . add ( "wildcardSubdomain" ) ;
1508
1511
}
0 commit comments