Revert "Change services default order."

This reverts commit 77af792f1b.
This commit is contained in:
Moahmed-Ismail MEJRI
2022-03-17 16:18:00 +01:00
parent 015d31960f
commit 23392958da
2 changed files with 14 additions and 15 deletions

View File

@@ -2,7 +2,13 @@
<form class="main-form" id="nc-vue-unified-form" :action="path"> <form class="main-form" id="nc-vue-unified-form" :action="path">
<div class="options-group"> <div class="options-group">
<div <div
class="youtube-dl-link option-buttons active-button" class="magnet-link http-link option-buttons active-button"
@click.prevent="whichType('aria2', $event)"
>
HTTP/MAGNET
</div>
<div
class="youtube-dl-link option-buttons"
@click.prevent="whichType('youtube-dl', $event)" @click.prevent="whichType('youtube-dl', $event)"
> >
Youtube-dl Youtube-dl
@@ -13,12 +19,6 @@
> >
{{ searchLabel }} {{ searchLabel }}
</div> </div>
<div
class="magnet-link http-link option-buttons"
@click.prevent="whichType('aria2', $event)"
>
HTTP/MAGNET
</div>
</div> </div>
<div class="action-group"> <div class="action-group">
<div class="download-input-container" v-if="inputType === 'download'"> <div class="download-input-container" v-if="inputType === 'download'">
@@ -97,12 +97,12 @@ export default {
data() { data() {
return { return {
checkedValue: false, checkedValue: false,
path: this.uris.ytd_url, path: this.uris.aria2_url,
inputType: "download", inputType: "download",
checkboxes: true, checkboxes: false,
downloadType: "youtube-dl", downloadType: "aria2",
placeholder: t("ncdownloader", "Paste your video link here"), placeholder: t("ncdownloader", "Paste your http/magnet link here"),
searchLabel: t("ncdownloader", "Search Music"), searchLabel: t("ncdownloader", "Search Torrents"),
searchOptions: this.search_sites ? this.search_sites : this.noOptions(), searchOptions: this.search_sites ? this.search_sites : this.noOptions(),
selectedExt: "Default", selectedExt: "Default",
}; };
@@ -126,7 +126,6 @@ export default {
this.downloadType = type; this.downloadType = type;
if (type === "aria2") { if (type === "aria2") {
this.path = this.uris.aria2_url; this.path = this.uris.aria2_url;
this.placeholder = t("ncdownloader", "Paste your http/magnet link here");
} else if (type === "youtube-dl") { } else if (type === "youtube-dl") {
this.placeholder = t("ncdownloader", "Paste your video link here"); this.placeholder = t("ncdownloader", "Paste your video link here");
this.path = this.uris.ytd_url; this.path = this.uris.ytd_url;
@@ -243,11 +242,11 @@ export default {
.magnet-link, .magnet-link,
.choose-file { .choose-file {
background-color: #a0a0ae; background-color: #a0a0ae;
border-radius: 15px 0px 0px 15px;
} }
.youtube-dl-link { .youtube-dl-link {
background-color: #b8b8ca; background-color: #b8b8ca;
border-radius: 15px 0px 0px 15px;
} }
.search-torrents { .search-torrents {
background-color: #d0d0e0; background-color: #d0d0e0;

View File

@@ -28,7 +28,7 @@ export default {
data() { data() {
return { return {
placeholder: t("ncdownloader", "Enter keyword to search"), placeholder: t("ncdownloader", "Enter keyword to search"),
selected: "sliderkz", selected: "TPB",
}; };
}, },
components: { components: {