Put flair into labs
parent
5087da9247
commit
548e5f516c
|
@ -33,11 +33,17 @@ export default {
|
||||||
// XXX: Always use default, ignore localStorage and remove from labs
|
// XXX: Always use default, ignore localStorage and remove from labs
|
||||||
override: true,
|
override: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "-",
|
||||||
|
id: 'feature_flair',
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
// horrible but it works. The locality makes this somewhat more palatable.
|
// horrible but it works. The locality makes this somewhat more palatable.
|
||||||
doTranslations: function() {
|
doTranslations: function() {
|
||||||
this.LABS_FEATURES[0].name = _t("Matrix Apps");
|
this.LABS_FEATURES[0].name = _t("Matrix Apps");
|
||||||
|
this.LABS_FEATURES[1].name = _t("Flair");
|
||||||
},
|
},
|
||||||
|
|
||||||
loadProfileInfo: function() {
|
loadProfileInfo: function() {
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import {MatrixClient} from 'matrix-js-sdk';
|
import {MatrixClient} from 'matrix-js-sdk';
|
||||||
|
import UserSettingsStore from '../../../UserSettingsStore';
|
||||||
|
|
||||||
const BULK_REQUEST_DEBOUNCE_MS = 200;
|
const BULK_REQUEST_DEBOUNCE_MS = 200;
|
||||||
|
|
||||||
|
@ -132,7 +133,9 @@ export default class Flair extends React.Component {
|
||||||
|
|
||||||
componentWillMount() {
|
componentWillMount() {
|
||||||
this._unmounted = false;
|
this._unmounted = false;
|
||||||
this._generateAvatars();
|
if (UserSettingsStore.isFeatureEnabled('feature_flair')) {
|
||||||
|
this._generateAvatars();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async _getAvatarUrls(groups) {
|
async _getAvatarUrls(groups) {
|
||||||
|
|
|
@ -872,5 +872,6 @@
|
||||||
"Leave Group": "Leave Group",
|
"Leave Group": "Leave Group",
|
||||||
"Leave %(groupName)s?": "Leave %(groupName)s?",
|
"Leave %(groupName)s?": "Leave %(groupName)s?",
|
||||||
"%(widgetName)s widget modified by %(senderName)s": "%(widgetName)s widget modified by %(senderName)s",
|
"%(widgetName)s widget modified by %(senderName)s": "%(widgetName)s widget modified by %(senderName)s",
|
||||||
"Robot check is currently unavailable on desktop - please use a <a>web browser</a>": "Robot check is currently unavailable on desktop - please use a <a>web browser</a>"
|
"Robot check is currently unavailable on desktop - please use a <a>web browser</a>": "Robot check is currently unavailable on desktop - please use a <a>web browser</a>",
|
||||||
|
"Flair"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue