Skip to content

Commit

Permalink
Adding keyboard shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 16, 2017
1 parent 23310da commit 11459ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Modules/Page/Assets/js/components/PageForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,17 +143,19 @@
</div>
</div>
</el-form>
<button v-shortkey="['b']" @shortkey="pushRoute({name: 'admin.page.page.index'})" style="display: none"></button>
</div>
</template>

<script>
import axios from 'axios'
import Slugify from '../../../../Core/Assets/js/mixins/Slugify'
import TranslationHelper from '../../../../Core/Assets/js/mixins/TranslationHelper'
import ShortcutHelper from '../../../../Core/Assets/js/mixins/ShortcutHelper'
import Form from 'form-backend-validation'
export default {
mixins: [Slugify, TranslationHelper],
mixins: [Slugify, TranslationHelper, ShortcutHelper],
props: {
locales: {default: null},
pageTitle: {default: null, String},
Expand Down
4 changes: 3 additions & 1 deletion Modules/Page/Assets/js/components/PageTableServerSide.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,20 @@
</div>
</div>
</div>
<button v-shortkey="['c']" @shortkey="pushRoute({name: 'admin.page.page.create'})" style="display: none"></button>
</div>
</template>

<script>
import axios from 'axios'
import _ from "lodash";
import TranslationHelper from '../../../../Core/Assets/js/mixins/TranslationHelper'
import ShortcutHelper from '../../../../Core/Assets/js/mixins/ShortcutHelper'
let data;
export default {
mixins: [TranslationHelper],
mixins: [TranslationHelper, ShortcutHelper],
data() {
return {
data,
Expand Down

0 comments on commit 11459ed

Please sign in to comment.