clear up; add demo data
Build and Deploy Docker / build (push) Successful in 5m21s
Build and Deploy Docker / deploy (push) Successful in 49s

This commit is contained in:
2026-07-09 16:39:01 +02:00
parent bff143c29b
commit b5642af994
163 changed files with 38 additions and 743 deletions
+4 -2
View File
@@ -9,6 +9,7 @@ export default class extends Controller {
step: { type: Number, default: 1 },
hash: { type: String, default: '' },
showUrl: {type: String, default: null },
demo: { type: Boolean, default: false },
};
connect() {
@@ -81,7 +82,8 @@ export default class extends Controller {
}
async submit() {
if (this.files.length === 0) {
console.log(this.demoValue)
if (this.files.length === 0 && !this.demoValue) {
this.openPicker();
return;
}
@@ -143,7 +145,7 @@ export default class extends Controller {
}
updateChips() {
const has = this.files.length > 0;
const has = this.files.length > 0 || this.demoValue;
this.chipsTarget.hidden = !has;
this.addMoreTarget.hidden = !has;
this.chipsTarget.innerHTML = this.files