Skip to content

Commit

Permalink
feat: Make PageLinkFieldContent more universally usable
Browse files Browse the repository at this point in the history
  • Loading branch information
KasparRosin committed Oct 13, 2022
1 parent a63208f commit 4666278
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [5.7.1] - 13-10-2022

### Added

- Added the ability to use PageLinkField component without `outl1ne/nova-translatable`.

## [5.7.0] - 04-10-2022

### Changed
Expand Down
2 changes: 1 addition & 1 deletion dist/js/entry.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ export default {
computed: {
fullUrl() {
if (this.field.pageUrl) {
return this.field.pageUrl[this.locale];
if (this.locale) return this.field.pageUrl[this.locale];
return this.field.pageUrl;
}
return void 0;
},
},
Expand Down

0 comments on commit 4666278

Please sign in to comment.