PLT-6262 Add config setting to disable file attachments (#6301)

* Add config setting to disable file attachments

* Add unit tests

* Updating UI for no attachments (#6312)

* Update UI text on file upload System Console setting (#6313)

* Update storage_settings.jsx

* Update en.json
Этот коммит содержится в:
Joram Wilander
2017-05-04 15:45:19 -04:00
коммит произвёл GitHub
родитель 44a8f76d99
Коммит 49481caf6d
18 изменённых файлов: 179 добавлений и 68 удалений

Просмотреть файл

@@ -75,14 +75,6 @@ class BrowserStoreClass {
}
}
getLastServerVersion() {
return this.getGlobalItem('last_server_version');
}
setLastServerVersion(version) {
this.setGlobalItem('last_server_version', version);
}
signalLogout() {
if (this.isLocalStorageSupported()) {
// PLT-1285 store an identifier in session storage so we can catch if the logout came from this tab on IE11
@@ -144,7 +136,6 @@ class BrowserStoreClass {
clear() {
// persist some values through logout since they're independent of which user is logged in
const logoutId = sessionStorage.getItem('__logout__');
const serverVersion = this.getLastServerVersion();
const landingPageSeen = this.hasSeenLandingPage();
const selectedTeams = this.getItem('selected_teams');
const recentEmojis = localStorage.getItem(Constants.RECENT_EMOJI_KEY);
@@ -160,10 +151,6 @@ class BrowserStoreClass {
sessionStorage.setItem('__logout__', logoutId);
}
if (serverVersion) {
this.setLastServerVersion(serverVersion);
}
if (landingPageSeen) {
this.setLandingPageSeen(landingPageSeen);
}