mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-10-15 19:19:21 +08:00
Add download & copy buttons
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field is-horizontal">
|
||||
<div v-if="symlinkVhostEnabled" class="field is-horizontal">
|
||||
<div class="field-label">
|
||||
<label class="label">Symlink vhost</label>
|
||||
</div>
|
||||
@@ -173,6 +173,19 @@
|
||||
shareQuery(query) {
|
||||
window.history.replaceState({}, '', `?${query}`);
|
||||
},
|
||||
// Disable symlink if modularized structure is disabled
|
||||
'$props.data.modularizedStructure': {
|
||||
handler(data) {
|
||||
if (data.computed) {
|
||||
this.$props.data.symlinkVhost.enabled = true;
|
||||
this.$props.data.symlinkVhost.computed = this.$props.data.symlinkVhost.value;
|
||||
} else {
|
||||
this.$props.data.symlinkVhost.enabled = false;
|
||||
this.$props.data.symlinkVhost.computed = false;
|
||||
}
|
||||
},
|
||||
deep: true,
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
confirm(title, body, callback) {
|
||||
|
Reference in New Issue
Block a user