Skip to content

Commit

Permalink
fix style and database name
Browse files Browse the repository at this point in the history
Signed-off-by: Greta Doci <gretadoci@gmail.com>
  • Loading branch information
GretaD committed Dec 3, 2019
1 parent 18f777c commit 50f2f99
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
3 changes: 2 additions & 1 deletion apps/settings/css/settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1538,7 +1538,8 @@ doesnotexist:-o-prefocus, .strengthify-wrapper {
}
.toggleUserActions {
position: relative;
display: flex;
display: inline-flex;
align-items: center;
.icon-more {
width: 44px;
height: 44px;
Expand Down
11 changes: 10 additions & 1 deletion apps/settings/src/components/UserList/UserRowSimple.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,15 @@
<progress class="quota-user-progress"
:class="{'warn':usedQuota>80}"
:value="usedQuota"
v-tooltip.auto="usedSpace"
max="100" />
</div>
<div v-if="showConfig.showLanguages" class="languages">
{{ userLanguage.name }}
</div>
<div v-if="showConfig.showStoragePath" class="storageLocation">
<div v-if="showConfig.showStoragePath"
class="storageLocation"
v-tooltip.auto="user.storageLocation">
{{ user.storageLocation }}
</div>
<div v-if="showConfig.showUserBackend" class="userBackend">
Expand Down Expand Up @@ -148,6 +151,12 @@ export default {
return this.userSubAdminsGroups
.map((groupObject) => groupObject.name)
.join(', ')
},
usedSpace() {
if (this.user.quota.used) {
return t('settings', '{size} used', { size: OC.Util.humanFileSize(this.user.quota.used) })
}
return t('settings', '{size} used', { size: OC.Util.humanFileSize(0) })
}
},
Expand Down
2 changes: 1 addition & 1 deletion lib/private/User/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ public function loginName2UserName($loginName) {
* @return string the name of the backend to be shown
*/
public function getBackendName() {
return 'Database';
return 'gitLocal';
}

public static function preLoginNameUsedAsUserName($param) {
Expand Down

0 comments on commit 50f2f99

Please sign in to comment.