mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
chore(migrate): migrate card toggle button visible only for old domain
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
<div class="topbar-links">
|
<div class="topbar-links">
|
||||||
<button
|
<button
|
||||||
|
v-if="isOldStacjownikDomain"
|
||||||
class="btn--image migrate-info-button"
|
class="btn--image migrate-info-button"
|
||||||
@click="toggleMigrateInfoCard(true)"
|
@click="toggleMigrateInfoCard(true)"
|
||||||
data-tooltip-type="HtmlTooltip"
|
data-tooltip-type="HtmlTooltip"
|
||||||
@@ -126,6 +127,12 @@ export default defineComponent({
|
|||||||
toggleLocales() {
|
toggleLocales() {
|
||||||
this.mainStore.changeLocale(this.mainStore.currentLocale == 'pl' ? 'en' : 'pl');
|
this.mainStore.changeLocale(this.mainStore.currentLocale == 'pl' ? 'en' : 'pl');
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
computed: {
|
||||||
|
isOldStacjownikDomain() {
|
||||||
|
return location.hostname == 'stacjownik-td2.web.app';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user