1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-14 09:08:32 +00:00

Resolve "AB snagging: copy tweaks"

This commit is contained in:
Peter Evans 2023-12-21 09:29:15 +00:00
parent c71d6df6d3
commit 53e670d7ae
5 changed files with 25 additions and 4 deletions
web-frontend/modules
core
assets/scss/components/data_explorer
components
locales
database/locales

View file

@ -1,3 +1,10 @@
.data-explorer {
width: 323px;
.context__description {
padding: 32px;
text-align: center;
white-space: initial;
line-height: 20px;
}
}

View file

@ -32,7 +32,10 @@
>
</RootNode>
<div v-if="matchingNodes.length === 0" class="context__description">
{{ $t('dataExplorer.emptyText') }}
<span v-if="isSearching">{{
$t('dataExplorer.noMatchingNodesText')
}}</span>
<span v-else>{{ $t('dataExplorer.noProvidersText') }}</span>
</div>
</template>
</div>

View file

@ -4,7 +4,11 @@
{{ application.name }} {{ $t('snapshotsModal.title') }}
</h2>
<p>
{{ $t('snapshotsModal.description') }}
{{
$t('snapshotsModal.description', {
applicationTypeName: applicationTypeName,
})
}}
<span v-if="maxSnapshots >= 0">{{
$tc('snapshotsModal.descriptionLimits', maxSnapshots)
}}</span>
@ -91,6 +95,12 @@ export default {
}
},
computed: {
applicationTypeName() {
return this.$registry
.get('application', this.application.type)
.getName()
.toLowerCase()
},
maxSnapshots() {
return parseInt(this.$config.BASEROW_MAX_SNAPSHOTS_PER_GROUP)
},

View file

@ -583,6 +583,7 @@
"errorInvalidFormula": "The formula is invalid."
},
"dataExplorer": {
"emptyText": "No data found"
"noMatchingNodesText": "No matching data providers were found.",
"noProvidersText": "No data providers were found. To get started you can, for example, add a data source or page parameter."
}
}

View file

@ -736,7 +736,7 @@
},
"snapshotsModal": {
"title": "snapshots",
"description": "Snapshots are a full copy of your database of the moment when they were created. A duplication of that data will be created when restoring. Snapshots are automatically deleted after one year.",
"description": "Snapshots are a full copy of your {applicationTypeName} of the moment when they were created. A duplication of that data will be created when restoring. Snapshots are automatically deleted after one year.",
"descriptionLimits": "You can have a maximum of {n} snapshots per workspace. | You can have a maximum of {n} snapshot per workspace. | You can have a maximum of {n} snapshots per workspace.",
"createLabel": "Create a new snapshot",
"create": "Create snapshot",