瀏覽代碼

Making the back button a little smarter

master
Kibigo 7 年之前
父節點
當前提交
5f6f7aaa27
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      app/assets/javascripts/components/components/column_back_button.jsx

+ 2
- 1
app/assets/javascripts/components/components/column_back_button.jsx 查看文件

@@ -15,7 +15,8 @@ const ColumnBackButton = React.createClass({
mixins: [PureRenderMixin],

handleClick () {
this.context.router.goBack();
if (window.history && window.history.length == 1) this.context.router.push("/");
else this.context.router.goBack();
},

render () {


Loading…
取消
儲存