Skip to content

Commit

Permalink
Adding shortcut to go back to user index
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Oct 12, 2017
1 parent b6b4298 commit 646088b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions Modules/User/Assets/js/components/UserForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
</div>
</div>
</el-form>
<button v-shortkey="['b']" @shortkey="pushRoute({name: 'admin.user.users.index'})" v-show="false"></button>
</div>
</template>

Expand Down
20 changes: 19 additions & 1 deletion public/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -109606,6 +109606,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
//
//
//
//

exports.default = {
mixins: [_ShortcutHelper2.default],
Expand Down Expand Up @@ -110371,7 +110372,24 @@ var render = function() {
])
])
]
)
),
_vm._v(" "),
_c("button", {
directives: [
{
name: "shortkey",
rawName: "v-shortkey",
value: ["b"],
expression: "['b']"
},
{ name: "show", rawName: "v-show", value: false, expression: "false" }
],
on: {
shortkey: function($event) {
_vm.pushRoute({ name: "admin.user.users.index" })
}
}
})
],
1
)
Expand Down

0 comments on commit 646088b

Please sign in to comment.