mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) User language switcher
Summary: New language selector on the Account page for logged-in users. New icon for switching language for an anonymous user. For anonymous users, language is stored in a cookie grist_user_locale. Language is stored in user settings for authenticated users and takes precedence over what is stored in the cookie. Test Plan: New tests Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D3766
This commit is contained in:
@@ -61,6 +61,7 @@ export type IconName = "ChartArea" |
|
||||
"Filter" |
|
||||
"FilterSimple" |
|
||||
"Fireworks" |
|
||||
"Flag" |
|
||||
"Folder" |
|
||||
"FontBold" |
|
||||
"FontItalic" |
|
||||
@@ -195,6 +196,7 @@ export const IconList: IconName[] = ["ChartArea",
|
||||
"Filter",
|
||||
"FilterSimple",
|
||||
"Fireworks",
|
||||
"Flag",
|
||||
"Folder",
|
||||
"FontBold",
|
||||
"FontItalic",
|
||||
|
||||
@@ -330,10 +330,10 @@ export function saveModal(createFunc: (ctl: IModalControl, owner: MultiHolder) =
|
||||
* See saveModal() for error handling notes that here apply to the onConfirm callback.
|
||||
*/
|
||||
export function confirmModal(
|
||||
title: string,
|
||||
btnText: string,
|
||||
title: DomElementArg,
|
||||
btnText: DomElementArg,
|
||||
onConfirm: () => Promise<void>,
|
||||
explanation?: Element|string,
|
||||
explanation?: DomElementArg,
|
||||
{hideCancel, extraButtons}: {hideCancel?: boolean, extraButtons?: DomContents} = {},
|
||||
): void {
|
||||
return saveModal((ctl, owner): ISaveModalOptions => ({
|
||||
|
||||
Reference in New Issue
Block a user