Line data Source code
1 : /*
2 : * Copyright (C) 2023 Red Hat, Inc.
3 : * SPDX-License-Identifier: LGPL-2.1-or-later
4 : */
5 :
6 113 : 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 113 : const _ = cockpit.gettext;
13 :
14 111 : export function make_unformatted_data_card(next, backing_block, content_block) {
15 111 : return new_card({
16 111 : title: _("Unformatted data"),
17 111 : next,
18 111 : component: StorageCard,
19 111 : actions: [
20 111 : std_lock_action(backing_block, content_block),
21 111 : std_format_action(backing_block, content_block),
22 111 : ]
23 111 : });
24 111 : }
|