Add download & copy buttons

This commit is contained in:
MattIPv4
2020-05-07 17:31:40 +01:00
parent 2809d5fa7a
commit 8ee4a8eb88
7 changed files with 371 additions and 66 deletions

View File

@@ -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) {