Can't install Drupal on prod
This commit is contained in:
parent
a8c17e85bb
commit
721503e6e7
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Reference in a new issue