forked from syncthing/syncthing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
all: Display list of locally changed items in UI (fixes syncthing#5336)…
… (syncthing#5337)
- Loading branch information
Showing
9 changed files
with
144 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
gui/default/syncthing/transfer/localChangedFilesModalView.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<modal id="localChanged" status="info" icon="fas fa-exclamation-circle" heading="{{'Locally Changed Items' | translate}}" large="yes" closeable="yes"> | ||
<div class="modal-body"> | ||
<p translate> | ||
The following items were changed locally. | ||
</p> | ||
<table class="table table-striped"> | ||
<thead> | ||
<tr> | ||
<th translate>Path</th> | ||
<th translate>Size</th> | ||
</tr> | ||
</thead> | ||
<tr dir-paginate="file in localChanged.files | itemsPerPage: localChanged.perpage" current-page="localChanged.page" total-items="model[localChanged.folder].receiveOnlyTotalItems" pagination-id="localChanged"> | ||
<td>{{file.name}}</td> | ||
<td><span ng-hide="file.type == 'DIRECTORY'">{{file.size | binary}}B</span></td> | ||
</tr> | ||
</table> | ||
<dir-pagination-controls on-page-change="refreshLocalChanged(newPageNumber, localChanged.perpage)" pagination-id="localChanged"></dir-pagination-controls> | ||
<ul class="pagination pull-right"> | ||
<li ng-repeat="option in [10, 25, 50]" ng-class="{ active: localChanged.page == option }"> | ||
<a href="#" ng-click="refreshLocalChanged(localChanged.page, option)">{{option}}</a> | ||
</li> | ||
</ul> | ||
<div class="clearfix"></div> | ||
</div> | ||
<div class="modal-footer"> | ||
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters