added backup apis and tests
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
|
||||
dispatch("submit");
|
||||
} catch (err) {
|
||||
ApiClient.errorResponseHandler(err);
|
||||
ApiClient.error(err);
|
||||
}
|
||||
|
||||
isLoading = false;
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
let tooltipData = { text: "Refresh", position: "right" };
|
||||
export { tooltipData as tooltip };
|
||||
|
||||
let classes = "";
|
||||
export { classes as class };
|
||||
|
||||
let refreshTimeoutId = null;
|
||||
|
||||
function refresh() {
|
||||
@@ -31,7 +34,7 @@
|
||||
<button
|
||||
type="button"
|
||||
aria-label="Refresh"
|
||||
class="btn btn-transparent btn-circle"
|
||||
class="btn btn-transparent btn-circle {classes}"
|
||||
class:refreshing={refreshTimeoutId}
|
||||
use:tooltip={tooltipData}
|
||||
on:click={refresh}
|
||||
|
||||
@@ -157,6 +157,9 @@
|
||||
function handleOptionKeypress(e, item) {
|
||||
if (e.code === "Enter" || e.code === "Space") {
|
||||
handleOptionSelect(e, item);
|
||||
if (closable) {
|
||||
hideDropdown();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user