-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add discount icon with discount package in contracts table #3392
base: development
Are you sure you want to change the base?
Conversation
can we add some spaces between the icon and the text ? as Ehab did here #2477 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I founded my account yesterday with 10K TFT, but the package doesn't changed |
async getDiscountPackage(options: GetDiscountPackageOptions): Promise<DiscountLevel> { | ||
const gqlClient = new Graphql(options.graphqlURL); | ||
const body = `query getConsumption($contractId: BigInt!){ | ||
contractBillReports(where: {contractID_eq: $contractId}, limit: 1 ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this will make the first discount package will always displayed, i suggest to remove limit and get the last element in the list this may fix the issue
@0oM4R started out with a default package after funding account with 1M TFT, package changed to gold in less than 3hrs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
created a vm with a wallet that has 10M TFT, will update the comment later with the results |
async getDiscountPackage(options: GetDiscountPackageOptions): Promise<DiscountLevel> { | ||
const gqlClient = new Graphql(options.graphqlURL); | ||
|
||
const body = `query getConsumption($contractId: BigInt!){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
<v-tooltip bottom color="primary" close-delay="100" v-if="item.discountPackage" cols="2"> | ||
<template v-slot:activator="{ props }"> | ||
<v-icon class="scale_beat mr-2" color="warning" v-bind="props">mdi-brightness-percent</v-icon> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we should remove the mr-2 no need for it
v-if="item?.consumption !== 0 && item?.consumption !== undefined" | ||
class="d-flex justify-center align-center" | ||
> | ||
<p class="mr-2" cols="8">{{ item.consumption.toFixed(3) }} TFT/hour</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
Changes
Related Issues
#2477
Tested Scenarios
Documentation PR
For UI changes, Please provide the Documetation PR on info_grid
Checklist