Skip to content

Commit

Permalink
Indicate default quota
Browse files Browse the repository at this point in the history
Fixes #11393
  • Loading branch information
AasthaGupta committed Oct 27, 2018
1 parent 37782b1 commit 7978fb8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,7 @@ Options -Indexes
<IfModule pagespeed_module>
ModPagespeed Off
</IfModule>
#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####

ErrorDocument 403 /server/
ErrorDocument 404 /server/
3 changes: 1 addition & 2 deletions core/js/mimetypelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ OC.MimeTypeList={
"text/x-ldif": "text/code",
"text/x-python": "text/code",
"text/x-shellscript": "text/code",
"web": "text/code",
"application/internet-shortcut": "link"
"web": "text/code"
},
files: [
"application",
Expand Down
7 changes: 5 additions & 2 deletions settings/src/components/userList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ import Vue from 'vue';

export default {
name: 'userList',
props: ['users', 'showConfig', 'selectedGroup', 'externalActions'],
props: ['users', 'showConfig', 'selectedGroup', 'externalActions', 'defaultQuotaValue'],
components: {
userRow,
Multiselect,
Expand Down Expand Up @@ -241,7 +241,10 @@ export default {
let quotaPreset = this.settings.quotaPreset.reduce((acc, cur) => acc.concat({id: cur, label: cur}), []);
// add default presets
quotaPreset.unshift(this.unlimitedQuota);
quotaPreset.unshift(this.defaultQuota);

let defaultQuota = quotaPreset.find(quota => quota.id === this.defaultQuotaValue.id);
defaultQuota.label += " (default)";

return quotaPreset;
},
minPasswordLength() {
Expand Down
2 changes: 1 addition & 1 deletion settings/src/views/Users.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</div>
</template>
</app-navigation>
<user-list :users="users" :showConfig="showConfig" :selectedGroup="selectedGroup" :externalActions="externalActions" />
<user-list :users="users" :showConfig="showConfig" :selectedGroup="selectedGroup" :externalActions="externalActions" :defaultQuotaValue="defaultQuota"/>
</div>
</template>

Expand Down

0 comments on commit 7978fb8

Please sign in to comment.