Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
11459eda
Unverified
Commit
11459eda
authored
Sep 17, 2017
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding keyboard shortcuts
parent
23310dac
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
PageForm.vue
Modules/Page/Assets/js/components/PageForm.vue
+3
-1
PageTableServerSide.vue
Modules/Page/Assets/js/components/PageTableServerSide.vue
+3
-1
No files found.
Modules/Page/Assets/js/components/PageForm.vue
View file @
11459eda
...
@@ -143,6 +143,7 @@
...
@@ -143,6 +143,7 @@
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/el-form
>
<
/el-form
>
<
button
v
-
shortkey
=
"
['b']
"
@
shortkey
=
"
pushRoute({name: 'admin.page.page.index'
}
)
"
style
=
"
display: none
"
><
/button
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
...
@@ -150,10 +151,11 @@
...
@@ -150,10 +151,11 @@
import
axios
from
'
axios
'
import
axios
from
'
axios
'
import
Slugify
from
'
../../../../Core/Assets/js/mixins/Slugify
'
import
Slugify
from
'
../../../../Core/Assets/js/mixins/Slugify
'
import
TranslationHelper
from
'
../../../../Core/Assets/js/mixins/TranslationHelper
'
import
TranslationHelper
from
'
../../../../Core/Assets/js/mixins/TranslationHelper
'
import
ShortcutHelper
from
'
../../../../Core/Assets/js/mixins/ShortcutHelper
'
import
Form
from
'
form-backend-validation
'
import
Form
from
'
form-backend-validation
'
export
default
{
export
default
{
mixins
:
[
Slugify
,
TranslationHelper
],
mixins
:
[
Slugify
,
TranslationHelper
,
ShortcutHelper
],
props
:
{
props
:
{
locales
:
{
default
:
null
}
,
locales
:
{
default
:
null
}
,
pageTitle
:
{
default
:
null
,
String
}
,
pageTitle
:
{
default
:
null
,
String
}
,
...
...
Modules/Page/Assets/js/components/PageTableServerSide.vue
View file @
11459eda
...
@@ -71,6 +71,7 @@
...
@@ -71,6 +71,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<button
v-shortkey=
"['c']"
@
shortkey=
"pushRoute({name: 'admin.page.page.create'})"
style=
"display: none"
></button>
</div>
</div>
</template>
</template>
...
@@ -78,11 +79,12 @@
...
@@ -78,11 +79,12 @@
import
axios
from
'
axios
'
import
axios
from
'
axios
'
import
_
from
"
lodash
"
;
import
_
from
"
lodash
"
;
import
TranslationHelper
from
'
../../../../Core/Assets/js/mixins/TranslationHelper
'
import
TranslationHelper
from
'
../../../../Core/Assets/js/mixins/TranslationHelper
'
import
ShortcutHelper
from
'
../../../../Core/Assets/js/mixins/ShortcutHelper
'
let
data
;
let
data
;
export
default
{
export
default
{
mixins
:
[
TranslationHelper
],
mixins
:
[
TranslationHelper
,
ShortcutHelper
],
data
()
{
data
()
{
return
{
return
{
data
,
data
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment