Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_Fixed #857 #858 #900 #902 + glitches on #860 fix #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

whatever22
Copy link
Contributor

Please delete previous PR (a few edited files containing only new EOF + spaces were polluting it). This one replaces it.

<div id="nb-search-results" class="flex1 padding8" class="padding8"
ng-if="nbSearchResults">
Résultats: {{ nbSearchResults }}
</div>
<filesearch></filesearch>
<button class="btn btn-default" type="button" >
<span class="padding8 glyphicon glyphicon-cloud-upload" aria-hidden="true"></span>
<button class="btn btn-default" ng-controller="FilesListController as fileCtrl" ng-click="fileCtrl.showUploadFileModal()" type="button" >
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

showUploadFileModal n'est pas implémenté

</button>
<button class="btn btn-default" type="button" >
<button class="btn btn-default" ng-controller="FilesListController as fileCtrl" ng-click="fileCtrl.createNewFolder()" type="button" >
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idem pour createNewFolder

</div>
<div class="modal-footer">
<button type="button" ng-click="newFolderModalCtrl.closeModal()" class="btn btn-default">Annuler</button>
<button type="button" ng-click="newFolderModalCtrl.closeUploadFileModal(newFolderModalCtrl.file, newFolderModalCtrl.permissions, newFolderModalCtrl.licence)" class="btn btn-primary">Créer</button>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

closeUploadFileModal n'est pas implémenté

@@ -405,6 +401,7 @@ body.modal-open {
float: none;
}


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je profite de cet ajout de ligne pour signaler le changement de droits au niveau de ce fichier, les deux semblent inappropriés

@@ -11,7 +11,7 @@ <h4 class="modal-title">Supprimer?</h4>
</div>
<div class="modal-footer">
<button type="button" ng-click="modalCtrl.close('Delete')" class="btn btn-default" data-dismiss="modal">Supprimer pour toujours</button>
<button type="button" ng-click="modalCtrl.close()" class="btn btn-primary" data-dismiss="modal">Annuler</button>
<button type="button" ng-click="modalCtrl.closeModal()" class="btn btn-primary" data-dismiss="modal">Annuler</button>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pourquoi changer les close en closeModal ?

ng-click="isDetailsPaneOpened = !isDetailsPaneOpened"
ng-class="{ active: isDetailsPaneOpened }">
ng-click="isDetailsPaneOpened = !isDetailsPaneOpened"
ng-class="{ active: isDetailsPaneOpened }">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je profite de ce changement d'indentation pour signaler le changement de droits au niveau de ce fichier, les deux semblent inappropriés

controller: function($scope, files, close) {
var vm = this;

vm.folderName = 'Indiquer un nom pour ';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Nouveau dossier" ?

currentPath = crumbsArray.slice(1, crumbsArray.length).join('/');
$rootScope.$broadcast('openAbsoluteFolder', '/' + currentPath);
ngToast.create('Répertoire créé avec succès.');
jQuery(".modal-backdrop").remove();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Si cette ligne et la suivante sont en dehors du if on peut sûrement se passer du closeModal

@@ -1,168 +1,308 @@
(function() {
'use strict';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pourquoi réindenter tout le fichier ?

vm.folderName = 'Indiquer un nom pour ';


vm.closeModal = function() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Les modales se ferment déjà avec close() normalement

};

vm.closeUploadFileModal = function(result) {
// Current service code doesn't handle licence/Permissions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Le paramètre license semble pris en compte par cumulus :
En post : https://github.com/telabotanica/cumulus/blob/master/CumulusService.php#L802
En put : https://github.com/telabotanica/cumulus/blob/master/CumulusService.php#L584
Et permissions est juste à coté. Est-ce qu'il y a un bug avec ces paramètres ?



vm.uploadFile = function() {
FilesListService.uploadFile();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uploadFile n'est pas implémenté, est-ce plutôt uploadFiles ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants