Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Jan 17, 2025
1 parent 4ca53aa commit 99d9d48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rust/agama-lib/src/software/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ pub struct ResolvableParams {
pub optional: bool,
}

/// Resolvable list specification.
/// Repository list specification.
#[derive(Deserialize, Serialize, utoipa::ToSchema)]
#[serde(rename_all = "camelCase")]
pub struct Repository {
Expand All @@ -109,9 +109,9 @@ pub struct Repository {
pub alias: String,
/// repository name
pub name: String,
/// Repository url
/// Repository url (raw format without expanded variables)
pub url: String,
/// product directory. Do we need it?
/// product directory (currently not used, valid only for multiproduct DVDs)
pub product_dir: String,
/// Whether the repository is enabled
pub enabled: bool,
Expand Down
3 changes: 3 additions & 0 deletions web/src/components/software/SoftwarePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ function SoftwarePage(): React.ReactNode {
};

const ReloadSection = (): React.ReactNode => (
// TRANSLATORS: title for an error message box, at least one repository could not be loaded
<Alert variant="danger" isInline title={_("Repository load failed")}>
{/* TRANSLATORS: error details followed by a "Try again" link*/}
{_(
"Some installation repositories could not be loaded. The system cannot be installed without them.",
)}{" "}
Expand All @@ -130,6 +132,7 @@ function SoftwarePage(): React.ReactNode {
</>
) : (
<Button variant="link" isInline onClick={startProbing}>
{/* TRANSLATORS: link for retrying failed repository load */}
{_("Try again")}
</Button>
)}
Expand Down

0 comments on commit 99d9d48

Please sign in to comment.