Skip to content

Commit

Permalink
Adjust dal alteration translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Fajfa committed Nov 24, 2023
1 parent 26c819e commit ba01c12
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@
<b-th
class="text-primary"
>
{{ $t('alteration') }}
{{ $t('columns.alteration') }}
</b-th>

<b-th
class="text-primary"
style="max-width: 300px;"
>
{{ $t('change') }}
{{ $t('columns.change') }}
</b-th>

<b-th
class="text-primary text-center"
>
{{ $t('status') }}
{{ $t('columns.status') }}
</b-th>

<b-th style="min-width: 200px;" />
Expand Down Expand Up @@ -168,7 +168,7 @@ import { compose } from '@cortezaproject/corteza-js'
export default {
i18nOptions: {
namespaces: 'module',
keyPrefix: 'schemaAlterations',
keyPrefix: 'edit.schemaAlterations',
},
props: {
Expand Down Expand Up @@ -238,7 +238,7 @@ export default {
this.$SystemAPI.dalSchemaAlterationDismiss({ alterationID }).then(() => {
this.toastSuccess(this.$t('notification:module.schemaAlterations.dismiss.success'))
}).catch(this.toastErrorHandler(this.$t('notification:schemaAlterations.dismiss.error')))
}).catch(this.toastErrorHandler(this.$t('notification:module.schemaAlterations.dismiss.error')))
.finally(() => {
for (const a of alteration) {
a.processing = false
Expand All @@ -261,7 +261,7 @@ export default {
this.$SystemAPI.dalSchemaAlterationApply({ alterationID }).then(() => {
this.toastSuccess(this.$t('notification:module.schemaAlterations.resolve.success'))
}).catch(this.toastErrorHandler(this.$t('notification:schemaAlterations.resolve.error')))
}).catch(this.toastErrorHandler(this.$t('notification:module.schemaAlterations.resolve.error')))
.finally(() => {
for (const a of alteration) {
a.processing = false
Expand Down Expand Up @@ -331,12 +331,12 @@ export default {
return this.$t('params.attribute.reEncode', { ident: attr.ident, toType: to.type })
},
stringifyModelAddParams ({ attr = {} }) {
return this.$t('params.model.add', { ident: attr.ident })
stringifyModelAddParams ({ model = {} }) {
return this.$t('params.model.add', { ident: model.ident })
},
stringifyModelDeleteParams ({ attr = {} }) {
return this.$t('params.model.delete', { ident: attr.ident })
stringifyModelDeleteParams ({ model = {} }) {
return this.$t('params.model.delete', { ident: model.ident })
},
canDismiss (alteration) {
Expand Down
28 changes: 5 additions & 23 deletions locale/en/corteza-webapp-compose/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,16 @@ edit:

schemaAlterations:
title: Schema alterations
columns:
alteration: Alteration
change: Change
status: Status
resolve: Resolve
resolveAuto: Resolve automatically
resolved: Resolved
dismiss: Dismiss
waitingFor: 'Waiting for {{id}}'
noAlterations: No schema alterations need to be resolved
columns:
alteration: Alteration
change: Change
status: Status
params:
attribute:
add: Add column {{ident}} encoded as {{storeType}} of type {{attrType}}
Expand All @@ -103,6 +103,7 @@ edit:
model:
add: Add schema for model {{ident}}
delete: Delete schema for model {{ident}}

config:
dal:
title: Data store
Expand Down Expand Up @@ -256,22 +257,3 @@ searchPlaceholder: Type here to search all modules in this namespace
title: List of Modules
tooltip:
permissions: Module permissions

schemaAlterations:
title: Schema Alterations
alteration: AlterationID
change: Change
status: Status
resolve: Resolve
resolveAuto: Resolve automatically
dismiss: Dismiss

params:
attribute:
add: Add attribute
delete: Delete attribute
reType: Change attribute type
reEncode: Change attribute encoding
model:
add: Add model
delete: Delete model

0 comments on commit ba01c12

Please sign in to comment.