File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 < a id ="locale-selector " href ="# " class ="dropdown-toggle " data-toggle ="dropdown " role ="button " aria-haspopup ="true " aria-expanded ="true "> < span id ="locale-display "> EU</ span > < span class ="caret "> </ span > </ a >
1919 < ul class ="dropdown-menu ">
2020 < li class ="dropdown-header "> Change Store</ li >
21- < li > < a href ="# " onclick =" changeStore('EU') "> EU</ a > </ li >
21+ < li > < a href ="https://librenms.spreadshirt.net/ "> EU</ a > </ li >
2222 < li > < a href ="# " onclick ="changeStore('NA') "> NA</ a > </ li >
2323 </ ul >
2424 </ li >
6464 if ( ! spread_shop_config . prefix ) {
6565 setStore ( country ) ;
6666 }
67- document . getElementById ( 'locale-display' ) . innerText = spread_shop_config . prefix === na_store ? 'NA' : 'EU' ;
67+
68+ if ( spread_shop_config . prefix === na_store ) {
69+ document . getElementById ( 'locale-display' ) . innerText = 'NA' ;
70+ } else {
71+ // redirect to external store for now
72+ document . getElementById ( 'locale-display' ) . innerText = 'EU' ;
73+ location . href = eu_store ;
74+ }
6875
6976 $ . getScript ( spread_shop_config . prefix + '/shopfiles/shopclient/shopclient.nocache.js' ) ;
7077 }
You can’t perform that action at this time.
0 commit comments