/* 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/. */ import { html } from "chrome://global/content/vendor/lit.all.mjs"; import { MozLitElement } from "chrome://global/content/lit-utils.mjs"; /** * The widget for showing available options when users want to turn on * scheduled backups. */ export default class TurnOffScheduledBackups extends MozLitElement { static get queries() { return { cancelButtonEl: "#backup-turn-off-scheduled-cancel-button", confirmButtonEl: "#backup-turn-off-scheduled-confirm-button", }; } close() { this.dispatchEvent( new CustomEvent("dialogCancel", { bubbles: true, composed: true, }) ); } handleConfirm() { this.dispatchEvent( new CustomEvent("BackupUI:DisableScheduledBackups", { bubbles: true, }) ); } contentTemplate() { return html`

`; } render() { return html` ${this.contentTemplate()} `; } } customElements.define("turn-off-scheduled-backups", TurnOffScheduledBackups);