WIP replace

This commit is contained in:
Eliot Berriot 2018-06-30 15:28:47 +02:00
parent ba094c3e42
commit 833c0f1625
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
83 changed files with 973 additions and 761 deletions

View file

@ -1,9 +1,15 @@
<template>
<form class="ui form" @submit.prevent="fetchInstanceInfo">
<h3 class="ui header"><i18next path="Federate with a new instance"/></h3>
<p><i18next path="Use this form to scan an instance and setup federation."/></p>
<h3 class="ui header">
{{ $gettext('Federate with a new instance') }}
</h3>
<p>
{{ $gettext('Use this form to scan an instance and setup federation.') }}
</p>
<div v-if="errors.length > 0 || scanErrors.length > 0" class="ui negative message">
<div class="header"><i18next path="Error while scanning library"/></div>
<div class="header">
{{ $gettext('Error while scanning library') }}
</div>
<ul class="list">
<li v-for="error in errors">{{ error }}</li>
<li v-for="error in scanErrors">{{ error }}</li>
@ -11,7 +17,9 @@
</div>
<div class="ui two fields">
<div class="ui field">
<label><i18next path="Library name"/></label>
<label>
{{ $gettext('Library name') }}
</label>
<input v-model="libraryUsername" type="text" placeholder="library@demo.funkwhale.audio" />
</div>
<div class="ui field">
@ -21,7 +29,7 @@
:disabled="isLoading"
:class="['ui', 'icon', {loading: isLoading}, 'button']">
<i class="search icon"></i>
<i18next path="Launch scan"/>
{{ $gettext('Launch scan') }}
</button>
</div>
</div>