Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Share info panel : fix copy bytton style.
Browse files Browse the repository at this point in the history
Share: avoid using null repoId.
Server catchError: do not use error code as request status !
  • Loading branch information
cdujeu committed Sep 22, 2016
1 parent 9a6a777 commit 228f7d8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
7 changes: 4 additions & 3 deletions core/src/core/src/pydio/Core/Http/Server.php
Expand Up @@ -239,9 +239,10 @@ public function catchError($code, $message, $fichier, $ligne, $context)
$req = $this->getRequest(); $req = $this->getRequest();
$resp = new Response(); $resp = new Response();
$x = new SerializableResponseStream(); $x = new SerializableResponseStream();
$resp = $resp if($code > 100 && $code < 599){
->withStatus($code) $resp = $resp->withStatus($code);
->withBody($x); }
$resp = $resp->withBody($x);
$x->addChunk(new UserMessage($message, LOG_LEVEL_ERROR)); $x->addChunk(new UserMessage($message, LOG_LEVEL_ERROR));
$this->topMiddleware->emitResponse($req, $resp); $this->topMiddleware->emitResponse($req, $resp);


Expand Down
3 changes: 2 additions & 1 deletion core/src/plugins/action.share/res/react-share-form.css
Expand Up @@ -422,7 +422,8 @@ div#ajxp_shared_info_panel .copy-button {
cursor: pointer; cursor: pointer;
background-color: rgba(255, 255, 255, 0.87); background-color: rgba(255, 255, 255, 0.87);
padding: 7px; padding: 7px;
font-size: 14px; font-size: 13px;
height: 12px;
border-radius: 0 2px 2px 0; border-radius: 0 2px 2px 0;
} }
div#ajxp_shared_info_panel .copy-message { div#ajxp_shared_info_panel .copy-message {
Expand Down
3 changes: 2 additions & 1 deletion core/src/plugins/action.share/res/react-share-form.less
Expand Up @@ -446,7 +446,8 @@ div#ajxp_shared_info_panel{
cursor: pointer; cursor: pointer;
background-color: rgba(255, 255, 255, 0.87); background-color: rgba(255, 255, 255, 0.87);
padding: 7px; padding: 7px;
font-size: 14px; font-size: 13px;
height: 12px;
border-radius: 0 2px 2px 0; border-radius: 0 2px 2px 0;
} }
.copy-message{ .copy-message{
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/action.share/src/Store/ShareStore.php
Expand Up @@ -440,7 +440,7 @@ public function deleteShare($type, $element, $keepRepository = false, $ignoreRep
$owner = $repo->getOwner(); $owner = $repo->getOwner();
$this->testUserCanEditShare($repo->getOwner(), $repo->options); $this->testUserCanEditShare($repo->getOwner(), $repo->options);
} }
if(!$keepRepository){ if($repoId !== null && !$keepRepository){
$res = RepositoryService::deleteRepository($repoId); $res = RepositoryService::deleteRepository($repoId);
if ($res == -1) { if ($res == -1) {
throw new \Exception($mess[427]); throw new \Exception($mess[427]);
Expand Down

0 comments on commit 228f7d8

Please sign in to comment.