mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) suspend a team site after an AppSumo refund
Summary: This suspends service to a team site for which an AppSumo refund has been made, and nudges users to their free personal account. I expect that a refund request would fail for a site where user is also paying us for extra seats. Test Plan: tested manually Reviewers: dsagal Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D2912
This commit is contained in:
@@ -104,7 +104,7 @@ export class TopAppModelImpl extends Disposable implements TopAppModel {
|
||||
org.billingAccount.product.name === 'suspended') {
|
||||
this.notifier.createUserError(
|
||||
'This team site is suspended. Documents can be read, but not modified.',
|
||||
{actions: ['renew']}
|
||||
{actions: ['renew', 'personal']}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ export interface IProgress extends Expirable {
|
||||
}
|
||||
|
||||
// Identifies supported actions. These are implemented in NotifyUI.
|
||||
export type NotifyAction = 'upgrade' | 'renew' | 'report-problem' | 'ask-for-help';
|
||||
export type NotifyAction = 'upgrade' | 'renew' | 'personal' | 'report-problem' | 'ask-for-help';
|
||||
|
||||
export interface INotifyOptions {
|
||||
message: string | (() => DomElementArg); // A string, or a function that builds dom.
|
||||
|
||||
Reference in New Issue
Block a user