Merge pull request #1677 from urbanrotnik/ur-sci-3345-export-all-counter-fix-2

Exports left after export [SCI-3345]
This commit is contained in:
Urban Rotnik 2019-04-16 14:44:48 +02:00 committed by GitHub
commit 782d1dfc2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -257,7 +257,7 @@ class TeamsController < ApplicationController
partial: 'projects/export/modal.html.erb',
locals: { num_projects: @exp_projects.size,
limit: TeamZipExport.exports_limit,
num_of_requests_left: current_user.exports_left }
num_of_requests_left: current_user.exports_left - 1 }
),
title: t('projects.export_projects.modal_title')
}