Skip to content

Commit

Permalink
change scope to 'local' for display name and avatar
Browse files Browse the repository at this point in the history
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
  • Loading branch information
schiessle committed Nov 16, 2016
1 parent 23d2ab1 commit 50c5925
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion settings/js/federationscopemenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@
var FederationScopeMenu = OC.Backbone.View.extend({
tagName: 'div',
className: 'federationScopeMenu popovermenu bubble hidden open menu',
field: undefined,
_scopes: [
{
name: 'private',
displayName: t('core', 'Private'),
displayName: (this.field == 'avatar' || this.field == 'displaynqgitqame') ? t('core', 'Local') : t('core', 'Private'),
icon: OC.imagePath('core', 'actions/password')
},
{
Expand All @@ -56,6 +57,10 @@
}
],

initialize: function(options) {
this.field = options.field;
},

/**
* Current context
*
Expand Down
2 changes: 1 addition & 1 deletion settings/js/federationsettingsview.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
_.each(this._inputFields, function(field) {
var $heading = self.$('#' + field + 'form h2');
var $icon = self.$('#' + field + 'form h2 > span');
var scopeMenu = new OC.Settings.FederationScopeMenu();
var scopeMenu = new OC.Settings.FederationScopeMenu({field: field});

self.listenTo(scopeMenu, 'select:scope', function(scope) {
self._onScopeChanged(field, scope);
Expand Down

0 comments on commit 50c5925

Please sign in to comment.