Skip to content

Commit

Permalink
remove add options when media already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
roboticsound committed Jun 22, 2017
1 parent 56e45c6 commit 14fb753
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
8 changes: 0 additions & 8 deletions popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@
<body>
<div id="popup" class="container">

<!-- <div class="scrollbar-inner"> -->
<!-- <div class="row internal-container">
<div class="col-xs-12 ">
<h2 id="serverName"></h2>
</div>
</div> -->
<div class="row internal-container">
<div class="col-xs-10">
<h2 style="text-align: bottom" id="serverName"></h2>
Expand All @@ -39,7 +32,6 @@ <h2 style="text-align: bottom" id="serverName"></h2>
<img id="logo" style="border: 0;" class="img-responsive">
</a>
</div>

</div>

<div id="page">
Expand Down
8 changes: 7 additions & 1 deletion popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ class Pulsarr {
$('body').changepanel(media.movie.text[0]);

if (media.existingSlug !== "") {
$("#optMonitored").addClass("hidden");
$("#optMinAvail").addClass("hidden");
$("#optProfile").addClass("hidden");
$('#btnExists').removeClass('hidden');
$('#btnAdd').addClass('hidden');
$('#btnAddSearch').addClass('hidden');
Expand Down Expand Up @@ -105,6 +108,9 @@ class Pulsarr {
$('body').changepanel(media.series.text[0]);

if (media.existingSlug !== "") {
$("#optMonitored").addClass("hidden");
$("#optProfile").addClass("hidden");
$("#optSeriesType").addClass("hidden");
$('#btnExists').removeClass('hidden');
$('#btnAdd').addClass('hidden');
$('#btnAddSearch').addClass('hidden');
Expand Down Expand Up @@ -366,7 +372,7 @@ class RadarrServer extends Server {
$('#monitored').bootstrapToggle('off');
}

$('#lstProfile').val(pulsarrConfig.radarr.preferences.minAvaill);
$('#lstMinAvail').val(pulsarrConfig.radarr.preferences.minAvail);
}

addMovie(movie, qualityId, monitored, minAvail, addSearch, folderPath) {
Expand Down

0 comments on commit 14fb753

Please sign in to comment.