Use error page

This commit is contained in:
rxdn 2024-09-01 17:11:46 +01:00
parent 18e81f4936
commit 858dc0e33e

View File

@ -88,7 +88,7 @@
</style> </style>
<script> <script>
import {withLoadingScreen, notifyError, notifySuccess} from '../../js/util'; import {withLoadingScreen, notifyError, notifySuccess, errorPage} from '../../js/util';
import {setDefaultHeaders} from '../../includes/Auth.svelte' import {setDefaultHeaders} from '../../includes/Auth.svelte'
import Card from "../../components/Card.svelte"; import Card from "../../components/Card.svelte";
import {getIconUrl, getDefaultIcon} from "../../js/icons"; import {getIconUrl, getDefaultIcon} from "../../js/icons";
@ -132,7 +132,7 @@
} }
if (res.data.legacy_entitlement === null || res.data.legacy_entitlement.is_legacy) { if (res.data.legacy_entitlement === null || res.data.legacy_entitlement.is_legacy) {
notifyError('This feature is only available to users with a server-specific premium subscription via Patreon.'); errorPage('This feature is only available to users with a server-specific premium subscription via Patreon.');
return; return;
} }