diff --git a/client/web/compose/src/components/Admin/Module/DiscoverySettings.vue b/client/web/compose/src/components/Admin/Module/DiscoverySettings.vue index 35508b7b9..f82f5b927 100644 --- a/client/web/compose/src/components/Admin/Module/DiscoverySettings.vue +++ b/client/web/compose/src/components/Admin/Module/DiscoverySettings.vue @@ -14,7 +14,6 @@ diff --git a/client/web/compose/src/components/Admin/Module/FederationSettings.vue b/client/web/compose/src/components/Admin/Module/FederationSettings.vue index 0ee1ddc91..db7e3f397 100644 --- a/client/web/compose/src/components/Admin/Module/FederationSettings.vue +++ b/client/web/compose/src/components/Admin/Module/FederationSettings.vue @@ -12,7 +12,6 @@ @change="$emit('change', $event)" > - {{ showRecordModal ? $t('label.close') : labels.back || $t('label.back') }} + {{ backLabel }} @@ -266,6 +267,11 @@ export default { required: false, default: () => ({}), }, + + hasBack: { + type: Boolean, + default: true, + }, }, computed: { @@ -306,6 +312,16 @@ export default { return this.isDeleted && this.record.canUndeleteRecord && !this.processing && this.record.recordID !== NoID }, + + backLabel () { + if (this.inEditing) { + return this.$t('label.cancel') + } else if (this.showRecordModal) { + return this.$t('label.close') + } + + return this.hasBack ? this.labels.back || this.$t('label.back') : this.$t('label.home') + }, }, methods: { diff --git a/client/web/compose/src/components/PageBlocks/Configurator.vue b/client/web/compose/src/components/PageBlocks/Configurator.vue index 6685d9b6b..c0b40e707 100644 --- a/client/web/compose/src/components/PageBlocks/Configurator.vue +++ b/client/web/compose/src/components/PageBlocks/Configurator.vue @@ -1,7 +1,6 @@