Merge pull request #5514 from mempool/nymkappa/refactor-pool-subscription
[refactor] remove useless mining_pool subscriptions
This commit is contained in:
		
						commit
						19347614bd
					
				@ -12,9 +12,15 @@
 | 
				
			|||||||
        <span class="badge mr-1 badge-og" *ngIf="user.ogRank">
 | 
					        <span class="badge mr-1 badge-og" *ngIf="user.ogRank">
 | 
				
			||||||
          OG #{{ user.ogRank }}
 | 
					          OG #{{ user.ogRank }}
 | 
				
			||||||
        </span>
 | 
					        </span>
 | 
				
			||||||
        <span class="badge mr-1 badge-default" [class]="'badge-' + user.subscription_tag" *ngIf="user.subscription_tag !== 'free'">
 | 
					        @if (user.subscription_tag !== 'free') {
 | 
				
			||||||
          {{ user.subscription_tag.toUpperCase() }}
 | 
					          <span class="badge mr-1 badge-default" [class]="'badge-' + user.subscription_tag">
 | 
				
			||||||
        </span>
 | 
					            {{ user.subscription_tag.toUpperCase() }}
 | 
				
			||||||
 | 
					          </span>
 | 
				
			||||||
 | 
					        } @else if (user.type === 'mining_pool') {
 | 
				
			||||||
 | 
					          <span class="badge mr-1 badge-default" [class]="'badge-mining-pool'">
 | 
				
			||||||
 | 
					            MINING POOL
 | 
				
			||||||
 | 
					          </span>
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
      </span>
 | 
					      </span>
 | 
				
			||||||
      <a *ngIf="!userAuth" class="d-flex justify-content-center align-items-center nav-link m-0  menu-click" routerLink="/login" role="tab" (click)="onLinkClick('/login')">
 | 
					      <a *ngIf="!userAuth" class="d-flex justify-content-center align-items-center nav-link m-0  menu-click" routerLink="/login" role="tab" (click)="onLinkClick('/login')">
 | 
				
			||||||
        <fa-icon class="menu-click" [icon]="['fas', 'user-circle']" [fixedWidth]="true" style="font-size: 25px;margin-right: 15px;"></fa-icon>
 | 
					        <fa-icon class="menu-click" [icon]="['fas', 'user-circle']" [fixedWidth]="true" style="font-size: 25px;margin-right: 15px;"></fa-icon>
 | 
				
			||||||
 | 
				
			|||||||
@ -9,13 +9,12 @@ import { IBackendInfo } from '../interfaces/websocket.interface';
 | 
				
			|||||||
import { Acceleration, AccelerationHistoryParams } from '../interfaces/node-api.interface';
 | 
					import { Acceleration, AccelerationHistoryParams } from '../interfaces/node-api.interface';
 | 
				
			||||||
import { AccelerationStats } from '../components/acceleration/acceleration-stats/acceleration-stats.component';
 | 
					import { AccelerationStats } from '../components/acceleration/acceleration-stats/acceleration-stats.component';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export type ProductType = 'enterprise' | 'community' | 'mining_pool' | 'custom';
 | 
					 | 
				
			||||||
export interface IUser {
 | 
					export interface IUser {
 | 
				
			||||||
  username: string;
 | 
					  username: string;
 | 
				
			||||||
  email: string | null;
 | 
					  email: string | null;
 | 
				
			||||||
  passwordIsSet: boolean;
 | 
					  passwordIsSet: boolean;
 | 
				
			||||||
  snsId: string;
 | 
					  snsId: string;
 | 
				
			||||||
  type: ProductType;
 | 
					  type: 'enterprise' | 'community' | 'mining_pool';
 | 
				
			||||||
  subscription_tag: string;
 | 
					  subscription_tag: string;
 | 
				
			||||||
  status: 'pending' | 'verified' | 'disabled';
 | 
					  status: 'pending' | 'verified' | 'disabled';
 | 
				
			||||||
  features: string | null;
 | 
					  features: string | null;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user