mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-05 16:12:20 +00:00
parent
df866e10c8
commit
c1db8b2680
@ -42,7 +42,7 @@
|
|||||||
<p class="navbar-text hidden-xs" ng-class="{'hidden-sm':upgradeInfo && upgradeInfo.newer}">{{thisDeviceName()}}</p>
|
<p class="navbar-text hidden-xs" ng-class="{'hidden-sm':upgradeInfo && upgradeInfo.newer}">{{thisDeviceName()}}</p>
|
||||||
<ul class="nav navbar-nav navbar-right">
|
<ul class="nav navbar-nav navbar-right">
|
||||||
<li ng-if="upgradeInfo && upgradeInfo.newer" class="upgrade-newer">
|
<li ng-if="upgradeInfo && upgradeInfo.newer" class="upgrade-newer">
|
||||||
<button type="button" class="btn navbar-btn btn-primary btn-sm" ng-click="upgrade()">
|
<button type="button" class="btn navbar-btn btn-primary btn-sm" data-toggle="modal" data-target="#upgrade">
|
||||||
<span class="fas fa-arrow-circle-up"></span>
|
<span class="fas fa-arrow-circle-up"></span>
|
||||||
<span class="hidden-xs" translate translate-value-version="{{upgradeInfo.latest}}">Upgrade To {%version%}</span>
|
<span class="hidden-xs" translate translate-value-version="{{upgradeInfo.latest}}">Upgrade To {%version%}</span>
|
||||||
</button>
|
</button>
|
||||||
@ -841,6 +841,7 @@
|
|||||||
<ng-include src="'syncthing/transfer/failedFilesModalView.html'"></ng-include>
|
<ng-include src="'syncthing/transfer/failedFilesModalView.html'"></ng-include>
|
||||||
<ng-include src="'syncthing/transfer/remoteNeededFilesModalView.html'"></ng-include>
|
<ng-include src="'syncthing/transfer/remoteNeededFilesModalView.html'"></ng-include>
|
||||||
<ng-include src="'syncthing/transfer/localChangedFilesModalView.html'"></ng-include>
|
<ng-include src="'syncthing/transfer/localChangedFilesModalView.html'"></ng-include>
|
||||||
|
<ng-include src="'syncthing/core/upgradeModalView.html'"></ng-include>
|
||||||
<ng-include src="'syncthing/core/majorUpgradeModalView.html'"></ng-include>
|
<ng-include src="'syncthing/core/majorUpgradeModalView.html'"></ng-include>
|
||||||
<ng-include src="'syncthing/core/aboutModalView.html'"></ng-include>
|
<ng-include src="'syncthing/core/aboutModalView.html'"></ng-include>
|
||||||
<ng-include src="'syncthing/core/discoveryFailuresModalView.html'"></ng-include>
|
<ng-include src="'syncthing/core/discoveryFailuresModalView.html'"></ng-include>
|
||||||
|
@ -1387,6 +1387,7 @@ angular.module('syncthing.core')
|
|||||||
|
|
||||||
$scope.upgrade = function () {
|
$scope.upgrade = function () {
|
||||||
restarting = true;
|
restarting = true;
|
||||||
|
$('#upgrade').modal('hide');
|
||||||
$('#majorUpgrade').modal('hide');
|
$('#majorUpgrade').modal('hide');
|
||||||
$('#upgrading').modal();
|
$('#upgrading').modal();
|
||||||
$http.post(urlbase + '/system/upgrade').success(function () {
|
$http.post(urlbase + '/system/upgrade').success(function () {
|
||||||
|
18
gui/default/syncthing/core/upgradeModalView.html
Normal file
18
gui/default/syncthing/core/upgradeModalView.html
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<modal id="upgrade" status="warning" icon="fas fa-arrow-circle-up" heading="{{'Upgrade' | translate}}" large="no" closeable="yes">
|
||||||
|
<div class="modal-body">
|
||||||
|
<p>
|
||||||
|
<span translate>Are you sure you want to upgrade?</span>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<a ng-href="https://github.com/syncthing/syncthing/releases/tag/{{upgradeInfo.latest}}" target="_blank" translate>Release Notes</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-primary btn-sm" ng-click="upgrade()">
|
||||||
|
<span class="fas fa-check"></span> <span translate>Upgrade</span>
|
||||||
|
</button>
|
||||||
|
<button type="button" class="btn btn-default btn-sm" data-dismiss="modal">
|
||||||
|
<span class="fas fa-times"></span> <span translate>Close</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</modal>
|
Loading…
Reference in New Issue
Block a user