-
Notifications
You must be signed in to change notification settings - Fork 26
Add displaying of usage per month #2266
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
Conversation
5787721
to
fe69b76
Compare
.sort(sortItem?.comparer); | ||
}); | ||
// We can remove this hidden toggle once we have new edition licenses. | ||
const hiddenFeatureToggle = useHiddenFeature(["ArrowUp", "ArrowUp", "ArrowDown", "ArrowDown"]); |
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 have added a hidden keys combo to turn on this feature for testing purposes
}); | ||
// We can remove this hidden toggle once we have new edition licenses. | ||
const hiddenFeatureToggle = useHiddenFeature(["ArrowUp", "ArrowUp", "ArrowDown", "ArrowDown"]); | ||
const showMonthly = computed(() => license.edition === "MonthlyUsage" || hiddenFeatureToggle.value); |
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.
The name of the "edition" needs to be updated once we decide.
fe69b76
to
16928dd
Compare
}; | ||
|
||
const license = reactive<License>(emptyLicense); | ||
class emptyLicense implements License { |
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 have decided to refactor this type to be a class so we can reference its data directly.
The previous implementation was not giving the correct result.
16928dd
to
56cc0e9
Compare
This is to support future license models based on monthly usage.
This PR is backward-compatible, but in order to test it, you need Particular/ServiceControl#4863