Can't install Drupal on prod

This commit is contained in:
Oliver Davies 2018-12-27 10:46:20 +00:00
parent a8c17e85bb
commit 721503e6e7
2 changed files with 12 additions and 2 deletions

View file

@ -20,9 +20,19 @@
</template> </template>
<script> <script>
import _ from 'lodash'
export default { export default {
props: { props: {
links: Array, links: Array,
}, },
computed: {
filteredLinks: function () {
let links = this.links
return _.omitBy(links, _.isEmpty)
}
}
} }
</script> </script>

View file

@ -27,9 +27,9 @@
<template slot="right"> <template slot="right">
<header-buttons :links="[ <header-buttons :links="[
{ title: 'Install Drupal', icon: 'actions__upload', disabled: false }, !isProduction ? { title: 'Install Drupal', icon: 'actions__upload', disabled: false } : {},
{ title: 'Clear Varnish', icon: 'alpha__clear-cache', disabled: false }, { title: 'Clear Varnish', icon: 'alpha__clear-cache', disabled: false },
{ title: 'Live development', icon: 'actions__publish-settings', disabled: false }, !isProduction ? { title: 'Live development', icon: 'actions__publish-settings', disabled: false } : { title: 'Production mode', icon: 'state__locked', disabled: false },
{ title: 'Rename', icon: 'actions__edit', disabled: false }, { title: 'Rename', icon: 'actions__edit', disabled: false },
{ title: 'Configure', icon: 'actions__setting', disabled: false }, { title: 'Configure', icon: 'actions__setting', disabled: false },
]"></header-buttons> ]"></header-buttons>