mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
add api getAll method and fixed toolbar button positionning
This commit is contained in:
parent
182f4bf5cc
commit
7cda8b00bc
4 changed files with 13 additions and 6 deletions
|
@ -42,7 +42,11 @@ export default {
|
|||
})
|
||||
},
|
||||
|
||||
post (uri, data) {
|
||||
getAll (uris) {
|
||||
return Promise.all(uris.map((uri) => this.get(uri)))
|
||||
},
|
||||
|
||||
post (uri, data = {}) {
|
||||
return fetch('/api/' + uri, {
|
||||
...this.options,
|
||||
method: 'POST',
|
||||
|
@ -50,7 +54,7 @@ export default {
|
|||
}).then(response => handleResponse(response))
|
||||
},
|
||||
|
||||
put (uri, data) {
|
||||
put (uri, data = {}) {
|
||||
return fetch('/api/' + uri, {
|
||||
...this.options,
|
||||
method: 'PUT',
|
||||
|
@ -58,7 +62,7 @@ export default {
|
|||
}).then(response => handleResponse(response))
|
||||
},
|
||||
|
||||
delete (uri, data) {
|
||||
delete (uri, data = {}) {
|
||||
return fetch('/api/' + uri, {
|
||||
...this.options,
|
||||
method: 'DELETE',
|
||||
|
|
|
@ -93,7 +93,7 @@ body {
|
|||
}
|
||||
|
||||
@include media-breakpoint-up(md) {
|
||||
.btn-success {
|
||||
.btn ~ .btn {
|
||||
margin-left: .5rem;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<icon :iname="cert.alert.icon" /> {{ $t('certificate_alert_' + cert.alert.trad) }}
|
||||
</p>
|
||||
|
||||
<dl class="dl-horizontal">
|
||||
<dl>
|
||||
<dt v-t="'certificate_authority'" />
|
||||
<dd>{{ cert.type }} ({{ name }})</dd>
|
||||
<hr>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<template v-slot:header>
|
||||
<h2><icon iname="globe" /> {{ $t('domain_dns_config') }}</h2>
|
||||
</template>
|
||||
<pre><code>{{ dnsConfig }}</code></pre>
|
||||
<pre class="mb-0 p-3 bg-light"><code>{{ dnsConfig }}</code></pre>
|
||||
</b-card>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -38,4 +38,7 @@ export default {
|
|||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.card-body {
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in a new issue