diff --git a/front/src/LegacyLayout.vue b/front/src/LegacyLayout.vue index 88c468137..bb8df7424 100644 --- a/front/src/LegacyLayout.vue +++ b/front/src/LegacyLayout.vue @@ -15,7 +15,7 @@ const ChannelUploadModal = defineAsyncComponent(() => import('~/components/chann const PlaylistModal = defineAsyncComponent(() => import('~/components/playlists/PlaylistModal.vue')) const FilterModal = defineAsyncComponent(() => import('~/components/moderation/FilterModal.vue')) const ReportModal = defineAsyncComponent(() => import('~/components/moderation/ReportModal.vue')) -// const SetInstanceModal = defineAsyncComponent(() => import('~/components/SetInstanceModal.vue')) +const SetInstanceModal = defineAsyncComponent(() => import('~/components/SetInstanceModal.vue')) const ServiceMessages = defineAsyncComponent(() => import('~/components/ServiceMessages.vue')) const ShortcutsModal = defineAsyncComponent(() => import('~/components/ShortcutsModal.vue')) const AudioPlayer = defineAsyncComponent(() => import('~/components/audio/Player.vue')) diff --git a/front/src/components/SetInstanceModal.vue b/front/src/components/SetInstanceModal.vue new file mode 100644 index 000000000..fb2647cac --- /dev/null +++ b/front/src/components/SetInstanceModal.vue @@ -0,0 +1,166 @@ + + + + + + + Choose your instance + + + + + + + It is not possible to connect to the given URL + + + + + + The server might be down + + + + + The given address is not a Funkwhale server + + + + + + + You are currently connected to %{ hostname } . If you continue, you will be disconnected from your current instance and all your local data will be deleted. + + + + To continue, please select the Funkwhale instance you want to connect to. Enter the address directly, or select one of the suggested choices. + + + + Instance URL + + + + + Submit + + + + + + + + + + + Suggested choices + + + + {{ url }} + + + + + + + + Cancel + + + + +
+ You are currently connected to %{ hostname } . If you continue, you will be disconnected from your current instance and all your local data will be deleted. +
+ + To continue, please select the Funkwhale instance you want to connect to. Enter the address directly, or select one of the suggested choices. + +