Skip to content

Commit 67d8eb5

Browse files
committed
feat:spin wheel while waiting + css fix : mobile view on search bar
1 parent 45e3c7c commit 67d8eb5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/main.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ class MappingInputProvider extends HTMLElement {
155155
*/
156156
executeMapping(): Promise<any>;
157157
async executeMapping(download: boolean = false): Promise<any> {
158+
document.body.style.cursor = 'wait';
158159
let inputElement: HTMLInputElement = <HTMLInputElement>(
159160
this.shadowRoot.getElementById("mappingchooser")
160161
);
@@ -187,7 +188,9 @@ class MappingInputProvider extends HTMLElement {
187188
}).catch(error => {
188189
console.error("Error occured due to response other than 200:", error);
189190
alert("A remote mapping error occured. Please check server logs for details.");
190-
});
191+
}).finally(() => {
192+
document.body.style.cursor = 'auto';
193+
})
191194
}
192195
}
193196
}

src/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ button:hover {
6262
border-radius: 3.125rem;
6363
padding: 0.625rem 1.25rem;
6464
box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.3);
65+
width: fit-content;
6566
}
6667

6768
.mapping-input {

0 commit comments

Comments
 (0)