mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2026-08-13 12:33:07 +02:00
change lnImpl to CLT
change lnImpl to CLT
This commit is contained in:
parent
0bfa649532
commit
b4538eae4d
7 changed files with 9 additions and 9 deletions
|
|
@ -9,5 +9,5 @@
|
|||
<link rel="stylesheet" href="styles.ab2352d6f1061166b369.css"></head>
|
||||
<body>
|
||||
<rtl-app></rtl-app>
|
||||
<script src="runtime.bf8e641e92f245cd461d.js"></script><script src="polyfills-es5.763f4f23e8aee5ec234d.js" nomodule></script><script src="polyfills.e59b6f9dc696bd89cf7f.js"></script><script src="main.f95cf4f11f52307d09ec.js"></script></body>
|
||||
<script src="runtime.bf8e641e92f245cd461d.js"></script><script src="polyfills-es5.763f4f23e8aee5ec234d.js" nomodule></script><script src="polyfills.e59b6f9dc696bd89cf7f.js"></script><script src="main.d6a4b7309c1169a470c3.js"></script></body>
|
||||
</html>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -33,7 +33,7 @@ common.setOptions = () => {
|
|||
json: true,
|
||||
form: ''
|
||||
};
|
||||
if (node.ln_implementation.toLowerCase() !== 'clightning') {
|
||||
if (node.ln_implementation.toUpperCase() !== 'CLT') {
|
||||
node.options.headers = { 'Grpc-Metadata-macaroon': fs.readFileSync(node.macaroon_path + '/admin.macaroon').toString('hex') };
|
||||
} else {
|
||||
node.options.headers = { 'macaroon': Buffer.from(fs.readFileSync(node.macaroon_path + '/access.macaroon')).toString("base64") };
|
||||
|
|
@ -46,7 +46,7 @@ common.setOptions = () => {
|
|||
json: true,
|
||||
form: ''
|
||||
};
|
||||
if (common.selectedNode.ln_implementation.toLowerCase() !== 'clightning') {
|
||||
if (common.selectedNode.ln_implementation.toUpperCase() !== 'CLT') {
|
||||
common.selectedNode.options.headers = { 'Grpc-Metadata-macaroon': fs.readFileSync(common.selectedNode.macaroon_path + '/admin.macaroon').toString('hex') };
|
||||
} else {
|
||||
common.selectedNode.options.headers = { 'macaroon': Buffer.from(fs.readFileSync(common.selectedNode.macaroon_path + '/access.macaroon')).toString("base64") };
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ export class HorizontalNavigationComponent implements OnInit {
|
|||
.pipe(takeUntil(this.unSubs[0]))
|
||||
.subscribe((rtlStore) => {
|
||||
this.numPendingChannels = rtlStore.nodeData.numberOfPendingChannels;
|
||||
if(rtlStore.selNode.lnImplementation.toLowerCase() === 'clightning') {
|
||||
if(rtlStore.selNode.lnImplementation.toUpperCase() === 'CLT') {
|
||||
this.menuNodes = MENU_DATA.CLChildren;
|
||||
} else {
|
||||
this.menuNodes = MENU_DATA.LNDChildren;
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ export class SideNavigationComponent implements OnInit, OnDestroy {
|
|||
if (window.innerWidth <= 414) {
|
||||
this.smallScreen = true;
|
||||
}
|
||||
if(this.selNode && this.selNode.lnImplementation && this.selNode.lnImplementation.toLowerCase() === 'clightning') {
|
||||
if(this.selNode && this.selNode.lnImplementation && this.selNode.lnImplementation.toUpperCase() === 'CLT') {
|
||||
this.navMenus.data = MENU_DATA.CLChildren;
|
||||
} else {
|
||||
this.navMenus.data = MENU_DATA.LNDChildren;
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ export class ServerConfigComponent implements OnInit, OnDestroy {
|
|||
this.showLnConfig = false;
|
||||
this.showBitcoind = false;
|
||||
this.selNode = rtlStore.selNode;
|
||||
this.lnImplementationStr = this.selNode.lnImplementation.toLowerCase() === 'clightning' ? 'C-Lightning' : 'LND';
|
||||
this.lnImplementationStr = this.selNode.lnImplementation.toUpperCase() === 'CLT' ? 'CLT' : 'LND';
|
||||
if (undefined !== this.selNode.authentication && undefined !== this.selNode.authentication.configPath && this.selNode.authentication.configPath !== '') {
|
||||
this.showLnConfig = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ export class RTLEffects implements OnDestroy {
|
|||
this.logger.info(postRes);
|
||||
this.logger.info('Successfully Authorized!');
|
||||
this.SetToken(postRes.token);
|
||||
if(rootStore.selNode.lnImplementation.toLowerCase() === 'clightning') {
|
||||
if(rootStore.selNode.lnImplementation.toUpperCase() === 'CLT') {
|
||||
this.router.navigate(['/cl/home']);
|
||||
} else {
|
||||
this.router.navigate(['/lnd/home']);
|
||||
|
|
@ -254,7 +254,7 @@ export class RTLEffects implements OnDestroy {
|
|||
this.store.dispatch(new RTLActions.ResetRootStore(action.payload.lnNode));
|
||||
this.store.dispatch(new RTLActions.ResetLNDStore(selNode));
|
||||
this.store.dispatch(new RTLActions.ResetCLStore(selNode));
|
||||
if(action.payload.lnNode.lnImplementation.toLowerCase() === 'clightning') {
|
||||
if(action.payload.lnNode.lnImplementation.toUpperCase() === 'CLT') {
|
||||
this.router.navigate(['/cl/home']);
|
||||
this.CHILD_API_URL = API_URL + '/cl';
|
||||
return { type: RTLActions.VOID };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue