fix(salix): redirect from travel to addEntry
gitea/salix/pipeline/pr-master This commit looks good Details

This commit is contained in:
Javier Segarra 2024-10-03 22:29:01 +02:00
parent 486c7f4fa3
commit b85989105b
2 changed files with 3 additions and 2 deletions

View File

@ -76,7 +76,7 @@ export default class App {
newRoute = newRoute.concat(`?table=${tableValue}`); newRoute = newRoute.concat(`?table=${tableValue}`);
} else if (!hasId && this.logger.$params.id && newRoute.indexOf(this.logger.$params.id) < 0) } else if (!hasId && this.logger.$params.id && newRoute.indexOf(this.logger.$params.id) < 0)
newRoute = newRoute.concat(`${this.logger.$params.id}`); newRoute = newRoute.concat(`${this.logger.$params.id}`);
return this.logger.$http.get('Urls/findOne', {filter}) return this.logger.$http.get('Urls/findOne', {filter})
.then(res => { .then(res => {
if (res && res.data) if (res && res.data)

View File

@ -75,7 +75,8 @@ class Controller extends Section {
async redirectToCreateEntry() { async redirectToCreateEntry() {
this.$state.go('home'); this.$state.go('home');
window.location.href = await this.vnApp.getUrl(`entry/create?travelFk=${this.travelId}`); const createForm = JSON.stringify({travelFk: this.travelId});
window.location.href = await this.vnApp.getUrl(`entry/list?createForm=${createForm}`);
} }
onCloneWithEntriesAccept() { onCloneWithEntriesAccept() {