diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 55f9e8f..cb3f577 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -8,7 +8,7 @@ import { NodeResolverService } from './node-resolver.service'; const routes: Routes = [ { path: '', component: LoginComponent, resolve: { response: NodeResolverService} }, //{ path: 'create', component: PostCreateComponent, canActivate: [AuthGuardService]}, - { path: 'view', component: ViewerComponent, canActivate: [AuthGuardService]}, + { path: 'shop', component: ViewerComponent, canActivate: [AuthGuardService]}, { path: 'login', component: LoginComponent} ]; diff --git a/src/app/login/login.component.ts b/src/app/login/login.component.ts index a088018..1d93dce 100644 --- a/src/app/login/login.component.ts +++ b/src/app/login/login.component.ts @@ -52,12 +52,12 @@ export class LoginComponent implements OnInit { subscribe((userAddr: string) => { if (userAddr.length != 0) { console.log('Log in found!'); - this.router.navigate(['/view']); + this.router.navigate(['/shop']); } else { console.log('No login for existing token found'); console.log('Showing QR code for login'); //console.log(URLSafeBase64.encode(Buffer.from('S4ZEC::'.concat(localToken)))); - var codeString = `zcash:${this.nodeAddress}?amount=0.001&memo=${URLSafeBase64.encode(Buffer.from('ZGO::'.concat(localToken!)))}`; + var codeString = `zcash:${this.nodeAddress}?amount=0.005&memo=${URLSafeBase64.encode(Buffer.from('ZGO::'.concat(localToken!)))}`; console.log(codeString); var qrcode = new QRCode(document.getElementById("qrcode"), { text: codeString, @@ -81,7 +81,7 @@ export class LoginComponent implements OnInit { this.uZaddrUpdate.subscribe((userAddr: string) => { if (userAddr.length != 0) { console.log('Log in found in blockchain!'); - this.router.navigate(['/view']); + this.router.navigate(['/shop']); } }); }