Skip to content

Commit

Permalink
feat: [GSMEL-683] hardcode dev env
Browse files Browse the repository at this point in the history
  • Loading branch information
f-necas committed Mar 3, 2025
1 parent 523f424 commit 9b91dd7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<span>{{ record.ownerOrganization?.name }}</span>
</div>
}
<!-- @if (record.landingPage) {
@if (isDevEnv) {
<div class="flex flex-row gap-1">
<a
class="underline text-gray-2 text-sm"
Expand All @@ -71,7 +71,7 @@
name="matOpenInNew"
></ng-icon>
</div>
} -->
}
</div>
<div class="flex flex-col gap-2 pt-4">
<span class="font-semibold" translate="">mel.dataset.share</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ export class DatasetInformationComponent {
return categoryKeywords
}

get isDevEnv() {
return (
window.location.hostname ===
'mel.integration.apps.gs-fr-prod.camptocamp.com'
)
}

onKeywordClick(query: string, keyword: Keyword) {
this.routerFacade.updateSearch({ [query]: keyword.key })
}
Expand Down

0 comments on commit 9b91dd7

Please sign in to comment.