Skip to content

Commit

Permalink
Using v-hide instead of inline styles
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 16, 2017
1 parent 7eb0b3e commit 776b959
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Modules/Page/Assets/js/components/PageForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
</div>
</div>
</el-form>
<button v-shortkey="['b']" @shortkey="pushRoute({name: 'admin.page.page.index'})" style="display: none"></button>
<button v-shortkey="['b']" @shortkey="pushRoute({name: 'admin.page.page.index'})" v-show="false"></button>
</div>
</template>

Expand Down
2 changes: 1 addition & 1 deletion Modules/Page/Assets/js/components/PageTableServerSide.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</div>
</div>
</div>
<button v-shortkey="['c']" @shortkey="pushRoute({name: 'admin.page.page.create'})" style="display: none"></button>
<button v-shortkey="['c']" @shortkey="pushRoute({name: 'admin.page.page.create'})" v-show="false"></button>
</div>
</template>

Expand Down
16 changes: 10 additions & 6 deletions public/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -73143,10 +73143,12 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
rawName: "v-shortkey",
value: (['c']),
expression: "['c']"
}, {
name: "show",
rawName: "v-show",
value: (false),
expression: "false"
}],
staticStyle: {
"display": "none"
},
on: {
"shortkey": function($event) {
_vm.pushRoute({
Expand Down Expand Up @@ -74252,10 +74254,12 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
rawName: "v-shortkey",
value: (['b']),
expression: "['b']"
}, {
name: "show",
rawName: "v-show",
value: (false),
expression: "false"
}],
staticStyle: {
"display": "none"
},
on: {
"shortkey": function($event) {
_vm.pushRoute({
Expand Down

0 comments on commit 776b959

Please sign in to comment.