1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

do not show version modal if system if up-to-date

This commit is contained in:
Sylvain 2020-01-14 18:03:57 +01:00
parent 774060d9ab
commit a67b2ff29c

View File

@ -268,6 +268,8 @@ Application.Controllers.controller('ApplicationController', ['$rootScope', '$sco
};
$scope.versionModal = function() {
if ($scope.version.up_to_date) return;
$uibModal.open({
templateUrl: '<%= asset_path "admin/versions/upgradeModal.html" %>',
controller: 'VersionModalController',