mirror of
https://github.com/chirpstack/chirpstack.git
synced 2024-12-18 20:57:55 +00:00
Show error when navigator.clipboard is not available.
There can be multiple reasons for this, e.g. it is not supported by the browser or the browser does not provide this feature because there is no secure context (HTTP). Closes #231.
This commit is contained in:
parent
5a865c924c
commit
8cde912fdf
@ -96,6 +96,12 @@ function AesKeyInput(props: IProps) {
|
||||
duration: 3,
|
||||
});
|
||||
});
|
||||
} else {
|
||||
notification.error({
|
||||
message: "Error",
|
||||
description: "Clipboard functionality is not available.",
|
||||
duration: 3,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -99,6 +99,12 @@ function DevAddrInput(props: IProps) {
|
||||
duration: 3,
|
||||
});
|
||||
});
|
||||
} else {
|
||||
notification.error({
|
||||
message: "Error",
|
||||
description: "Clipboard functionality is not available.",
|
||||
duration: 3,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -96,6 +96,12 @@ function EuiInput(props: IProps) {
|
||||
duration: 3,
|
||||
});
|
||||
});
|
||||
} else {
|
||||
notification.error({
|
||||
message: "Error",
|
||||
description: "Clipboard functionality is not available.",
|
||||
duration: 3,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user