Skip to content
Snippets Groups Projects
Commit 3da638e7 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

resource-select: initially show a a disabled select2 with a loading label

Not just when we aren't logged in. To avoid layout shifts.
parent 40fefde8
No related branches found
No related tags found
No related merge requests found
Pipeline #101862 passed
......@@ -142,8 +142,14 @@ export class ResourceSelect extends AdapterLitElement {
async _updateAll() {
this._setValue(this.value);
if (!this.auth.token) {
// Show a dummy loading variant initially
const $select = this._getSelect2();
if (!this._IsSelect2Initialized($select)) {
await this._setSelect2Loading();
}
if (!this.auth.token) {
return;
}
await this._updateResources();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment