diff --git a/Dashboard/src/Pages/Settings/Billing.tsx b/Dashboard/src/Pages/Settings/Billing.tsx index a592d35d56..7524964d2d 100644 --- a/Dashboard/src/Pages/Settings/Billing.tsx +++ b/Dashboard/src/Pages/Settings/Billing.tsx @@ -97,6 +97,7 @@ const Settings: FunctionComponent = ( monitorLimit: true, teamMemberLimit: true, planType: true, + changePlanLink: true, }, } ); @@ -393,6 +394,21 @@ const Settings: FunctionComponent = ( { + Navigation.navigate( + reseller.changePlanLink! + ); + }, + icon: IconProp.Edit, + }, + ] + : [] + } >
diff --git a/Model/Models/Reseller.ts b/Model/Models/Reseller.ts index 9f01316c57..3368eedeca 100644 --- a/Model/Models/Reseller.ts +++ b/Model/Models/Reseller.ts @@ -13,6 +13,7 @@ import TableMetadata from 'Common/Types/Database/TableMetadata'; import IconProp from 'Common/Types/Icon/IconProp'; import BaseModel from 'Common/Models/BaseModel'; import Permission from 'Common/Types/Permission'; +import URL from 'Common/Types/API/URL'; @TableAccessControl({ create: [], @@ -98,7 +99,7 @@ export default class Reseller extends BaseModel { @TableColumn({ required: true, type: TableColumnType.ShortText, - canReadOnRelationQuery: true, + canReadOnRelationQuery: false, title: 'Username', description: 'Username of the reseller', }) @@ -117,7 +118,7 @@ export default class Reseller extends BaseModel { @TableColumn({ required: true, type: TableColumnType.ShortText, - canReadOnRelationQuery: true, + canReadOnRelationQuery: false, title: 'Password', description: 'Password for reseller to login', }) @@ -217,4 +218,24 @@ export default class Reseller extends BaseModel { transformer: ObjectID.getDatabaseTransformer(), }) public deletedByUserId?: ObjectID = undefined; + + @ColumnAccessControl({ + create: [], + read: [], + update: [], + }) + @TableColumn({ + required: false, + type: TableColumnType.ShortURL, + canReadOnRelationQuery: true, + title: 'Change Plan Link', + description: 'Reseller Change plan Link', + }) + @Column({ + nullable: true, + type: ColumnType.ShortURL, + length: ColumnLength.ShortURL, + transformer: URL.getDatabaseTransformer(), + }) + public changePlanLink?: URL = undefined; }