add new table view
This commit is contained in:
@@ -51,6 +51,7 @@ export default class extends Controller {
|
||||
this.resultTarget.innerHTML = '';
|
||||
this.hideError();
|
||||
this.stepValue = 1;
|
||||
// window.history.pushState(null, null, "/");
|
||||
}
|
||||
|
||||
// ---- pliki ----
|
||||
@@ -93,7 +94,8 @@ export default class extends Controller {
|
||||
|
||||
const res = await fetch(this.endpointUrl, { method: 'POST', body: fd });
|
||||
if (!res.ok) throw new Error('Błąd serwera (' + res.status + ')');
|
||||
|
||||
// const hashSummary = res.url.replace(/^https?:\/\/[^/]+\//, "/").replace(this.endpointUrl, "");
|
||||
// window.history.pushState(null, null, hashSummary);
|
||||
this.resultTarget.innerHTML = await res.text();
|
||||
this.stepValue = 3;
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user