@@ -182,7 +182,7 @@ export class MicrobeTraceNextHomeComponent extends AppComponentBase implements A
182182 // messages to display in loading modal
183183 messages : string [ ] = [ ] ;
184184
185- version : string = '2.2' ;
185+ version : string = '2.2.1 ' ;
186186 auspiceUrlVal : string | null = '' ;
187187
188188 private thresholdSubscription : Subscription ;
@@ -208,6 +208,15 @@ export class MicrobeTraceNextHomeComponent extends AppComponentBase implements A
208208
209209
210210 // posts: BlockchainProofHashDto[] = new Array<BlockchainProofHashDto>();
211+
212+ private dismissWelcomeOverlay ( duration : JQuery . Duration = 'slow' ) : void {
213+ const overlay = $ ( '#overlay' ) ;
214+ overlay . addClass ( 'overlay-hidden' ) . css ( 'pointer-events' , 'none' ) ;
215+ overlay . find ( '.dnd-input' ) . css ( 'pointer-events' , 'none' ) ;
216+ overlay . stop ( true , true ) . fadeOut ( duration ) ;
217+ $ ( '.ui-tabview-nav' ) . stop ( true , true ) . fadeTo ( duration , 1 ) ;
218+ $ ( '.m-portlet' ) . stop ( true , true ) . fadeTo ( duration , 1 ) ;
219+ }
211220 // Blockchaindata: BlockchainProofHashDto = new BlockchainProofHashDto();
212221 date : Date ;
213222 // Inputdownloadblock: DownloadFilteredBlockDto = new DownloadFilteredBlockDto();
@@ -1517,9 +1526,7 @@ export class MicrobeTraceNextHomeComponent extends AppComponentBase implements A
15171526
15181527 // this.homepageTabs[1].isActive = false;
15191528 this . homepageTabs [ 0 ] . isActive = true ;
1520- $ ( '#overlay' ) . fadeOut ( ) ;
1521- $ ( '.ui-tabview-nav' ) . fadeTo ( "slow" , 1 ) ;
1522- $ ( '.m-portlet' ) . fadeTo ( "slow" , 1 ) ;
1529+ this . dismissWelcomeOverlay ( ) ;
15231530 this . showExport = false ;
15241531 this . showCenter = false ;
15251532 this . showPinAllNodes = false ;
@@ -1651,9 +1658,7 @@ export class MicrobeTraceNextHomeComponent extends AppComponentBase implements A
16511658 */
16521659 public continueClicked ( ) : void {
16531660 // this._removeGlView('Files');
1654- $ ( '#overlay' ) . fadeOut ( "slow" ) ;
1655- $ ( '.ui-tabview-nav' ) . fadeTo ( "slow" , 1 ) ;
1656- $ ( '.m-portlet' ) . fadeTo ( "slow" , 1 ) ;
1661+ this . dismissWelcomeOverlay ( ) ;
16571662 }
16581663
16591664 /**
@@ -2607,8 +2612,17 @@ export class MicrobeTraceNextHomeComponent extends AppComponentBase implements A
26072612 }
26082613 }
26092614
2610- public onLinkColorChanged ( silent : boolean = false ) : void {
2615+ public onLinkColorChanged ( valueOrSilent : string | boolean | Event = false , silent : boolean = false ) : void {
2616+ if ( typeof valueOrSilent === 'string' ) {
2617+ this . SelectedLinkColorVariable = valueOrSilent ;
2618+ } else if ( valueOrSilent instanceof Event ) {
2619+ this . SelectedLinkColorVariable = ( valueOrSilent . target as HTMLInputElement | null ) ?. value ?? this . SelectedLinkColorVariable ;
2620+ } else {
2621+ silent = valueOrSilent ;
2622+ }
2623+
26112624 this . commonService . session . style . widgets [ "link-color" ] = this . SelectedLinkColorVariable ;
2625+ this . commonService . GlobalSettingsModel . SelectedLinkColorVariable = this . SelectedLinkColorVariable ;
26122626
26132627 if ( ! silent ) this . publishUpdateLinkColor ( ) ;
26142628
@@ -2618,6 +2632,12 @@ export class MicrobeTraceNextHomeComponent extends AppComponentBase implements A
26182632 onColorLinksByChanged ( silent : boolean = false ) {
26192633 this . commonService . GlobalSettingsModel . SelectedColorLinksByVariable = this . SelectedColorLinksByVariable ;
26202634 this . commonService . session . style . widgets [ 'link-color-variable' ] = this . SelectedColorLinksByVariable ;
2635+
2636+ if ( this . SelectedColorLinksByVariable === 'None' ) {
2637+ this . SelectedLinkColorVariable = this . commonService . session . style . widgets [ "link-color" ] || this . SelectedLinkColorVariable ;
2638+ this . commonService . GlobalSettingsModel . SelectedLinkColorVariable = this . SelectedLinkColorVariable ;
2639+ this . cdref . detectChanges ( ) ;
2640+ }
26212641
26222642 this . onLinkColorTableChanged ( silent ) ;
26232643 if ( this . isKeyTableDocked ( 'link-color' ) ) {
@@ -4394,9 +4414,7 @@ export class MicrobeTraceNextHomeComponent extends AppComponentBase implements A
43944414 this . homepageTabs [ 0 ] . isActive = true ;
43954415 console . log ( "Trying to launch" ) ;
43964416 this . homepageTabs [ 0 ] . componentRef . instance . launchClick ( ) ;
4397- $ ( '#overlay' ) . fadeOut ( ) ;
4398- $ ( '.ui-tabview-nav' ) . fadeTo ( "slow" , 1 ) ;
4399- $ ( '.m-portlet' ) . fadeTo ( "slow" , 1 ) ;
4417+ this . dismissWelcomeOverlay ( ) ;
44004418 }
44014419 } ) ;
44024420 break ;
0 commit comments