mirror of
https://github.com/kfattic/cupsadmin.git
synced 2026-11-13 19:06:43 -05:00
Quick action input labels shown as the profile writes them
"Current User ID" / "New User ID" on Xerox, "Current User Code" on Ricoh; the CLI validation error uses the same label. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -104,8 +104,8 @@ public struct QuickAction: Identifiable, Hashable {
|
||||
return resolved.profile.inputs[id]
|
||||
}
|
||||
|
||||
/// "User code" (Ricoh) or the profile's label ("User ID" for Xerox).
|
||||
public func inputLabel(_ context: DriverContext) -> String { inputSpec(context)?.label ?? "User code" }
|
||||
/// "User Code" (Ricoh) or the profile's label ("User ID" for Xerox). Shown as written, never re-cased.
|
||||
public func inputLabel(_ context: DriverContext) -> String { inputSpec(context)?.label ?? "User Code" }
|
||||
|
||||
/// The optional second value's label ("Account ID (optional)"), or nil when the profile has none.
|
||||
public func secondInputLabel(_ context: DriverContext) -> String? { inputSpec(context)?.second?.label }
|
||||
|
||||
Reference in New Issue
Block a user