[fix] close collapsibles by default except warning

This commit is contained in:
axolotle 2022-11-08 16:21:02 +01:00
parent daf8e58ce0
commit a13fbd9dd4
2 changed files with 6 additions and 5 deletions

View file

@ -24,7 +24,7 @@ export default {
id: { type: String, required: true },
title: { type: String, required: true },
variant: { type: String, default: 'white' },
visible: { type: Boolean, default: true },
visible: { type: Boolean, default: false },
flush: { type: Boolean, default: false }
},

View file

@ -36,7 +36,7 @@
<card-collapse
id="app-warning" flush variant="warning"
:title="$t('app.preview.before_install')"
visible :title="$t('app.preview.before_install')"
>
<b-card-body>
<strong v-t="'app.antifeatures'" class="d-block mb-1" />
@ -115,7 +115,8 @@ export default {
},
async created () {
let { id, name, version, potential_alternative_to: alternatives, ...app } = await api.get('apps/manifest?app=' + this.appId)
const { id, name, version, potential_alternative_to: alternatives, ...app } = await api.get('apps/manifest?app=' + this.appId)
const archs = app.integration.architectures
const integration = {
archs: Array.isArray(archs) ? archs.join(this.$i18n.t('words.separator')) : archs,
@ -152,8 +153,8 @@ export default {
</script>
<style lang="scss" scoped>
::v-deep .modal-body .b-overlay-wrap {
min-height: 50vh;
::v-deep .b-overlay-wrap {
min-height: 40vh;
}
.antifeatures {