Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
thanksd
funkwhale
Commits
e38d0a37
Commit
e38d0a37
authored
3 years ago
by
jovuit
Committed by
Ciarán Ainsworth
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Resolves
#1484
parent
909d16c2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
front/src/components/RemoteSearchForm.vue
+10
-8
10 additions, 8 deletions
front/src/components/RemoteSearchForm.vue
with
10 additions
and
8 deletions
front/src/components/RemoteSearchForm.vue
+
10
−
8
View file @
e38d0a37
...
@@ -21,10 +21,10 @@
...
@@ -21,10 +21,10 @@
{{
labels
.
fieldLabel
}}
{{
labels
.
fieldLabel
}}
</label>
</label>
<p
v-if=
"type === 'rss'"
>
<p
v-if=
"type === 'rss'"
>
<translate
translate-context=
"Content/Fetch/Paragraph"
>
Paste here the RSS url or the fediverse address to subscribe to its feed
.
</translate>
<translate
translate-context=
"Content/Fetch/Paragraph"
>
Use this form to subscribe to an RSS feed from its URL
.
</translate>
</p>
</p>
<p
v-else-if=
"type === 'artists'"
>
<p
v-else-if=
"type === 'artists'"
>
<translate
translate-context=
"Content/Fetch/Paragraph"
>
Use this form to
retrieve an object
hosted somewhere else
i
n the
f
ediverse.
</translate>
<translate
translate-context=
"Content/Fetch/Paragraph"
>
Use this form to
subscribe to a channel
hosted somewhere else
o
n the
F
ediverse.
</translate>
</p>
</p>
<input
type=
"text"
name=
"object-id"
id=
"object-id"
:placeholder=
"labels.fieldPlaceholder"
v-model=
"id"
required
>
<input
type=
"text"
name=
"object-id"
id=
"object-id"
:placeholder=
"labels.fieldPlaceholder"
v-model=
"id"
required
>
</div>
</div>
...
@@ -62,7 +62,6 @@ export default {
...
@@ -62,7 +62,6 @@ export default {
if
(
this
.
id
)
{
if
(
this
.
id
)
{
if
(
this
.
type
===
'
rss
'
)
{
if
(
this
.
type
===
'
rss
'
)
{
this
.
rssSubscribe
()
this
.
rssSubscribe
()
}
else
if
(
this
.
type
===
'
artists
'
)
{
}
else
if
(
this
.
type
===
'
artists
'
)
{
this
.
createFetch
()
this
.
createFetch
()
}
}
...
@@ -70,14 +69,17 @@ export default {
...
@@ -70,14 +69,17 @@ export default {
},
},
computed
:
{
computed
:
{
labels
()
{
labels
()
{
let
title
=
this
.
$pgettext
(
'
Head/Fetch/Title
'
,
"
Search a remote object
"
)
let
title
=
""
let
fieldLabel
=
this
.
$pgettext
(
'
Head/Fetch/Field.Label
'
,
"
URL or @username
"
)
let
fieldLabel
=
""
let
fieldPlaceholder
=
""
let
fieldPlaceholder
=
""
if
(
this
.
type
===
"
rss
"
)
{
if
(
this
.
type
===
"
rss
"
)
{
title
=
this
.
$pgettext
(
'
Head/Fetch/Title
'
,
"
Subscribe to a podcast RSS feed
"
)
title
=
this
.
$pgettext
(
'
Head/Fetch/Title
'
,
"
Subscribe to a podcast RSS feed
"
)
fieldLabel
=
this
.
$pgettext
(
'
*/*/*
'
,
"
Channel location
"
)
fieldLabel
=
this
.
$pgettext
(
'
*/*/*
'
,
"
RSS feed location
"
)
fieldLabel
=
this
.
$pgettext
(
'
*/*/*
'
,
"
Channel location
"
)
fieldPlaceholder
=
this
.
$pgettext
(
'
Head/Fetch/Field.Placeholder
'
,
"
https://website.example.com/rss.xml
"
)
fieldPlaceholder
=
this
.
$pgettext
(
'
Head/Fetch/Field.Placeholder
'
,
"
@channel@pod.example or https://website.example/rss.xml
"
)
}
else
if
(
this
.
type
===
'
artists
'
)
{
title
=
this
.
$pgettext
(
'
Head/Fetch/Title
'
,
"
Subscribe to a podcast hosted on the Fediverse
"
)
fieldLabel
=
this
.
$pgettext
(
'
*/*/*
'
,
"
Fediverse object
"
)
fieldPlaceholder
=
this
.
$pgettext
(
'
Head/Fetch/Field.Placeholder
'
,
"
@username@example.com
"
)
}
}
return
{
return
{
title
,
title
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment