Skip to content

Commit

Permalink
added a small button on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
austintoddj committed Jan 28, 2020
1 parent 83a3561 commit c0f73e9
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 217 deletions.
13 changes: 8 additions & 5 deletions public/js/app.js
Expand Up @@ -4555,6 +4555,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
//
//
//
//



Expand Down Expand Up @@ -115938,11 +115939,13 @@ var render = function() {
on: { click: _vm.showPublishModal }
},
[
_vm._v(
"\n " +
_vm._s(_vm.trans.buttons.posts.ready) +
"\n "
)
_c("span", { staticClass: "d-block d-lg-none" }, [
_vm._v(_vm._s(_vm.trans.buttons.posts.small))
]),
_vm._v(" "),
_c("span", { staticClass: "d-none d-lg-block" }, [
_vm._v(_vm._s(_vm.trans.buttons.posts.ready))
])
]
)
: _c(
Expand Down
2 changes: 1 addition & 1 deletion public/mix-manifest.json
@@ -1,5 +1,5 @@
{
"/js/app.js": "/js/app.js?id=d3fc0246d8f52628f296",
"/js/app.js": "/js/app.js?id=f0f8d5f228087994d7dc",
"/css/app.css": "/css/app.css?id=d0749a6891cfea4a6814",
"/css/app-dark.css": "/css/app-dark.css?id=4372fc6714ff030edb6c",
"/favicon.ico": "/favicon.ico?id=b3aec2f33a001156e320"
Expand Down
3 changes: 2 additions & 1 deletion resources/js/screens/posts/PostEdit.vue
Expand Up @@ -22,7 +22,8 @@

<template slot="action">
<a v-if="isDraft" href="#" class="btn btn-sm btn-outline-success font-weight-bold my-auto" @click="showPublishModal">
{{ trans.buttons.posts.ready }}
<span class="d-block d-lg-none">{{ trans.buttons.posts.small }}</span>
<span class="d-none d-lg-block">{{ trans.buttons.posts.ready }}</span>
</a>

<a v-else href="#" class="btn btn-sm btn-outline-success font-weight-bold my-auto" @click="save">
Expand Down
1 change: 1 addition & 0 deletions resources/lang/en/buttons.php
Expand Up @@ -15,6 +15,7 @@
'create' => 'New post',
'edit' => 'Edit post',
'ready' => 'Ready to publish?',
'small' => 'Publish?',
'publish' => 'Publish now',
'later' => 'Schedule for later',
'schedule' => 'Schedule to publish',
Expand Down

0 comments on commit c0f73e9

Please sign in to comment.