forked from mirrors/gecko-dev
		
	 a39846bf34
			
		
	
	
		a39846bf34
		
	
	
	
	
		
			
			backup-settings changes: - adds a new button in the Backup section of about:preferences / about:settings - shows the turn on dialog after pressing the button Turn on dialog behaviour (implemented): - pressing the cancel will close the dialog - pressing the confirm button will set the pref browser.backup.scheduled.enabled=true and close the dialog - pressing the passwords checkbox will show more options Turn on dialog behaviour (not implemented): - requiring a password for the backup (see Bug 1895981) - modifying the save location and showing a file picker (see Bug 1895943) Other changes: - tests for backup-settings and the turn on dialog - Storybook template for the turn on dialog Lo-fi Figma designs: https://www.figma.com/design/vNbX4c0ws0L1qr0mxpKvsW/Fx-Backup?node-id=147-4558&t=PYLY0QMN1n8GR9vW-0 Differential Revision: https://phabricator.services.mozilla.com/D209769
		
			
				
	
	
		
			38 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /* This Source Code Form is subject to the terms of the Mozilla Public
 | |
|  * License, v. 2.0. If a copy of the MPL was not distributed with this
 | |
|  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 | |
| 
 | |
| // eslint-disable-next-line import/no-unresolved
 | |
| import { html } from "lit.all.mjs";
 | |
| import "./backup-settings.mjs";
 | |
| 
 | |
| window.MozXULElement.insertFTLIfNeeded("locales-preview/backupSettings.ftl");
 | |
| window.MozXULElement.insertFTLIfNeeded("branding/brand.ftl");
 | |
| 
 | |
| export default {
 | |
|   title: "Domain-specific UI Widgets/Backup/Backup Settings",
 | |
|   component: "backup-settings",
 | |
|   argTypes: {},
 | |
| };
 | |
| 
 | |
| const Template = ({ backupServiceState }) => html`
 | |
|   <backup-settings .backupServiceState=${backupServiceState}></backup-settings>
 | |
| `;
 | |
| 
 | |
| export const BackingUpNotInProgress = Template.bind({});
 | |
| BackingUpNotInProgress.args = {
 | |
|   backupServiceState: {
 | |
|     backupFilePath: "Documents",
 | |
|     backupInProgress: false,
 | |
|     scheduledBackupsEnabled: false,
 | |
|   },
 | |
| };
 | |
| 
 | |
| export const BackingUpInProgress = Template.bind({});
 | |
| BackingUpInProgress.args = {
 | |
|   backupServiceState: {
 | |
|     backupFilePath: "Documents",
 | |
|     backupInProgress: true,
 | |
|     scheduledBackupsEnabled: false,
 | |
|   },
 | |
| };
 |