mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Add basic activation page to grist-ee
Summary: Adds an activation page to grist-ee that currently shows activation status. Follow-up diffs will introduce additional functionality, such as the ability to enter activation keys directly from the activation page. Test Plan: No grist-ee tests (yet). Reviewers: paulfitz Reviewed By: paulfitz Subscribers: dsagal, paulfitz Differential Revision: https://phab.getgrist.com/D3582
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import * as billingPageCss from 'app/client/ui/BillingPageCss';
|
||||
import { basicButton } from 'app/client/ui2018/buttons';
|
||||
import { basicButton, textButton } from 'app/client/ui2018/buttons';
|
||||
import { icon } from 'app/client/ui2018/icons';
|
||||
import { confirmModal } from 'app/client/ui2018/modals';
|
||||
|
||||
import { Disposable, dom, IDomArgs, makeTestId, Observable, observable, styled } from "grainjs";
|
||||
import { Disposable, dom, IDomArgs, makeTestId, Observable, observable, styled } from 'grainjs';
|
||||
|
||||
interface IWidgetOptions {
|
||||
apiKey: Observable<string>;
|
||||
@@ -64,7 +63,7 @@ export class ApiKey extends Disposable {
|
||||
this._inputArgs
|
||||
),
|
||||
cssTextBtn(
|
||||
cssBillingIcon('Remove'), 'Remove',
|
||||
cssTextBtnIcon('Remove'), 'Remove',
|
||||
dom.on('click', () => this._showRemoveKeyModal()),
|
||||
testId('delete'),
|
||||
dom.boolAttr('disabled', (use) => use(this._loading) || this._anonymous)
|
||||
@@ -133,9 +132,12 @@ const cssRow = styled('div', `
|
||||
display: flex;
|
||||
`);
|
||||
|
||||
const cssTextBtn = styled(billingPageCss.billingTextBtn, `
|
||||
const cssTextBtn = styled(textButton, `
|
||||
text-align: left;
|
||||
width: 90px;
|
||||
margin-left: 16px;
|
||||
`);
|
||||
|
||||
const cssBillingIcon = billingPageCss.billingIcon;
|
||||
const cssTextBtnIcon = styled(icon, `
|
||||
margin: 0 4px 2px 0;
|
||||
`);
|
||||
|
||||
Reference in New Issue
Block a user