diff --git a/GapsWeb/src/main/resources/static/js/page/recommended.js b/GapsWeb/src/main/resources/static/js/page/recommended.js index e339fb9..054eaa1 100755 --- a/GapsWeb/src/main/resources/static/js/page/recommended.js +++ b/GapsWeb/src/main/resources/static/js/page/recommended.js @@ -121,6 +121,9 @@ jQuery(($) => { isNotOwned(value) { return !value; }, + isEqual(a, b) { + return a === b; + }, }); libraryTitle = $('#libraryTitle'); diff --git a/GapsWeb/src/main/resources/templates/recommended.html b/GapsWeb/src/main/resources/templates/recommended.html index 6ad0f2c..3fd38fb 100755 --- a/GapsWeb/src/main/resources/templates/recommended.html +++ b/GapsWeb/src/main/resources/templates/recommended.html @@ -147,12 +147,19 @@
Owned
{{#each moviesInCollection}} - {{#if this.owned}} - {{this.title}} - {{/if}} + {{#if this.owned}} + {{#if (isEqual this.tmdbId @root.tmdbId)}} + {{this.title}} + {{else}} + {{this.title}} + {{/if}} + {{/if}} {{/each}}
@@ -160,12 +167,19 @@
Missing
{{#each moviesInCollection}} - {{#if (isNotOwned this.owned)}} - {{this.title}} - {{/if}} + {{#if (isNotOwned this.owned)}} + {{#if (isEqual this.tmdbId @root.tmdbId)}} + {{this.title}} + {{else}} + {{this.title}} + {{/if}} + {{/if}} {{/each}}