fix(inbox): a Takeout import's notice opens the user's own import
The import's notice reaches a user who may not see the Scheduler, an admin page, yet its link opened it. It now opens Settings › Account, where the import's status is; any other run still opens the Scheduler. The job id is held to the server's by the backend-ids contract. The notice's Hungarian names the list as the app does elsewhere.
This commit is contained in:
@@ -20,6 +20,7 @@ import { setupApi } from "./api/setup";
|
||||
export type * from "./api/setup";
|
||||
import { feedApi } from "./api/feed";
|
||||
export type * from "./api/feed";
|
||||
export { TAKEOUT_JOB } from "./api/feed";
|
||||
import { discoverApi } from "./api/discover";
|
||||
export type * from "./api/discover";
|
||||
export { DISCOVER_BUDGETS, HERO_TIERS, discoverCardKey } from "./api/discover";
|
||||
|
||||
@@ -149,6 +149,10 @@ function feedQuery(f: FeedFilters, cursor: string | null, limit: number): string
|
||||
return p.toString();
|
||||
}
|
||||
|
||||
// The import's job (`scheduler.TAKEOUT_IMPORT`, held to it by backendIds.contract.test): its notice
|
||||
// reaches a user who may not see the Scheduler, so it opens their own import instead.
|
||||
export const TAKEOUT_JOB = "takeout_import";
|
||||
|
||||
// A Google Takeout file, uploaded: which one it was, the videos read from it, and its entries left
|
||||
// out (an ad, a view of something that is not a video, a row that could not be read).
|
||||
export interface TakeoutUpload {
|
||||
|
||||
Reference in New Issue
Block a user