| 1 |
/* |
| 2 |
* Copyright (C) 2023 Red Hat, Inc. |
| 3 |
* SPDX-License-Identifier: LGPL-2.1-or-later |
| 4 |
*/ |
| 5 |
|
| 6 |
import cockpit from "cockpit"; |
| 7 |
|
| 8 |
import { StorageCard, new_card } from "../pages.jsx"; |
| 9 |
import { std_format_action } from "./actions.jsx"; |
| 10 |
import { std_lock_action } from "../crypto/actions.jsx"; |
| 11 |
|
| 12 |
const _ = cockpit.gettext; |
| 13 |
|
| 14 |
export function make_unformatted_data_card(next, backing_block, content_block) { |
| 15 |
return new_card({ |
| 16 |
title: _("Unformatted data"), |
| 17 |
next, |
| 18 |
component: StorageCard, |
| 19 |
actions: [ |
| 20 |
std_lock_action(backing_block, content_block), |
| 21 |
std_format_action(backing_block, content_block), |
| 22 |
] |
| 23 |
}); |
| 24 |
} |