watcher lint
This commit is contained in:
parent
d0432140d7
commit
f7ea8e6435
|
@ -57,24 +57,31 @@ export default class Watcher extends Component {
|
||||||
);
|
);
|
||||||
// });
|
// });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Submits the data and goes back in the history.
|
* Submits the data and goes back in the history.
|
||||||
|
*
|
||||||
|
* @return {Promise} The request promise
|
||||||
*/
|
*/
|
||||||
submitBack() {
|
submitBack() {
|
||||||
return this.submit().then(
|
return this.submit().then(
|
||||||
() => this.window.history.back()
|
() => this.window.history.back()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Submits the data and goes another state.
|
* Submits the data and goes another state.
|
||||||
*
|
*
|
||||||
* @param {String} state The state name
|
* @param {String} state The state name
|
||||||
|
* @param {Object} params The request params
|
||||||
|
* @return {Promise} The request promise
|
||||||
*/
|
*/
|
||||||
submitGo(state, params) {
|
submitGo(state, params) {
|
||||||
return this.submit().then(
|
return this.submit().then(
|
||||||
() => this.$state.go(state, params || {})
|
() => this.$state.go(state, params || {})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Submits the data to the server.
|
* Submits the data to the server.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue