fix(files): the token list is fresh after the sessions end, a copy again reads Copied again, the Copied button says so
This commit is contained in:
@@ -489,8 +489,11 @@ function CopyField({
|
||||
size="sm"
|
||||
autoFocus={autoFocus}
|
||||
icon={copied ? <Check className="w-4 h-4" /> : <Copy className="w-4 h-4" />}
|
||||
// Two of these sit in one dialog: each is named by the value it copies.
|
||||
aria-label={t("settings.tokens.copyField", { field: label })}
|
||||
// Two of these sit in one dialog: each is named by the value it copies, and by the word
|
||||
// it shows, so a voice command saying what is on screen finds it.
|
||||
aria-label={t(copied ? "settings.tokens.copiedField" : "settings.tokens.copyField", {
|
||||
field: label,
|
||||
})}
|
||||
onClick={() => void copy(value)}
|
||||
>
|
||||
{copied ? t("settings.tokens.copied") : t("settings.tokens.copy")}
|
||||
|
||||
Reference in New Issue
Block a user