From 72133fbed6fb10adc5e415d4c3f84e0fa094eb21 Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi <ykzts@desire.sh> Date: Mon, 12 Jun 2017 19:26:23 +0900 Subject: [PATCH] Re-add clear notifications button (#3708) * Re-add clear notifications button * remove connect() in column_settings * one line * remove unused props --- .../components/clear_column_button.js | 15 +++---------- .../components/column_settings.js | 19 ++++++++-------- .../containers/column_settings_container.js | 20 +++++++++++++++-- .../mastodon/features/notifications/index.js | 16 +------------- app/javascript/mastodon/locales/ar.json | 1 - app/javascript/mastodon/locales/bg.json | 1 - app/javascript/mastodon/locales/ca.json | 1 - app/javascript/mastodon/locales/de.json | 1 - .../mastodon/locales/defaultMessages.json | 17 +++++++------- app/javascript/mastodon/locales/en.json | 1 - app/javascript/mastodon/locales/eo.json | 1 - app/javascript/mastodon/locales/es.json | 1 - app/javascript/mastodon/locales/fa.json | 1 - app/javascript/mastodon/locales/fi.json | 1 - app/javascript/mastodon/locales/fr.json | 1 - app/javascript/mastodon/locales/he.json | 1 - app/javascript/mastodon/locales/hr.json | 1 - app/javascript/mastodon/locales/hu.json | 1 - app/javascript/mastodon/locales/id.json | 1 - app/javascript/mastodon/locales/io.json | 1 - app/javascript/mastodon/locales/it.json | 1 - app/javascript/mastodon/locales/ja.json | 1 - app/javascript/mastodon/locales/nl.json | 1 - app/javascript/mastodon/locales/no.json | 1 - app/javascript/mastodon/locales/oc.json | 1 - app/javascript/mastodon/locales/pl.json | 1 - app/javascript/mastodon/locales/pt.json | 1 - app/javascript/mastodon/locales/ru.json | 1 - app/javascript/mastodon/locales/th.json | 1 - app/javascript/mastodon/locales/tr.json | 1 - app/javascript/mastodon/locales/uk.json | 1 - app/javascript/styles/components.scss | 22 +++++-------------- 32 files changed, 46 insertions(+), 89 deletions(-) diff --git a/app/javascript/mastodon/features/notifications/components/clear_column_button.js b/app/javascript/mastodon/features/notifications/components/clear_column_button.js index 5af049313..54beb1c4d 100644 --- a/app/javascript/mastodon/features/notifications/components/clear_column_button.js +++ b/app/javascript/mastodon/features/notifications/components/clear_column_button.js @@ -1,28 +1,19 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { defineMessages, injectIntl } from 'react-intl'; - -const messages = defineMessages({ - clear: { id: 'notifications.clear', defaultMessage: 'Clear notifications' }, -}); +import { FormattedMessage } from 'react-intl'; class ClearColumnButton extends React.Component { static propTypes = { onClick: PropTypes.func.isRequired, - intl: PropTypes.object.isRequired, }; render () { - const { intl } = this.props; - return ( - <div role='button' title={intl.formatMessage(messages.clear)} className='column-icon column-icon-clear' tabIndex='0' onClick={this.props.onClick}> - <i className='fa fa-eraser' /> - </div> + <button className='text-btn column-header__setting-btn' tabIndex='0' onClick={this.props.onClick}><i className='fa fa-eraser' /> <FormattedMessage id='notifications.clear' defaultMessage='Clear notifications' /></button> ); } } -export default injectIntl(ClearColumnButton); +export default ClearColumnButton; diff --git a/app/javascript/mastodon/features/notifications/components/column_settings.js b/app/javascript/mastodon/features/notifications/components/column_settings.js index 5150a3902..7bfd02f11 100644 --- a/app/javascript/mastodon/features/notifications/components/column_settings.js +++ b/app/javascript/mastodon/features/notifications/components/column_settings.js @@ -1,27 +1,22 @@ import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; -import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; +import { FormattedMessage } from 'react-intl'; import ColumnCollapsable from '../../../components/column_collapsable'; +import ClearColumnButton from './clear_column_button'; import SettingToggle from './setting_toggle'; -const messages = defineMessages({ - settings: { id: 'notifications.settings', defaultMessage: 'Column settings' }, -}); - class ColumnSettings extends React.PureComponent { static propTypes = { settings: ImmutablePropTypes.map.isRequired, onChange: PropTypes.func.isRequired, onSave: PropTypes.func.isRequired, - intl: PropTypes.shape({ - formatMessage: PropTypes.func.isRequired, - }).isRequired, + onClear: PropTypes.func.isRequired, }; render () { - const { settings, intl, onChange, onSave } = this.props; + const { settings, onChange, onSave, onClear } = this.props; const alertStr = <FormattedMessage id='notifications.column_settings.alert' defaultMessage='Desktop notifications' />; const showStr = <FormattedMessage id='notifications.column_settings.show' defaultMessage='Show in column' />; @@ -29,6 +24,10 @@ class ColumnSettings extends React.PureComponent { return ( <div> + <div className='column-settings__row'> + <ClearColumnButton onClick={onClear} /> + </div> + <span className='column-settings__section'><FormattedMessage id='notifications.column_settings.follow' defaultMessage='New followers:' /></span> <div className='column-settings__row'> @@ -66,4 +65,4 @@ class ColumnSettings extends React.PureComponent { } -export default injectIntl(ColumnSettings); +export default ColumnSettings; diff --git a/app/javascript/mastodon/features/notifications/containers/column_settings_container.js b/app/javascript/mastodon/features/notifications/containers/column_settings_container.js index 76991d541..b139d4615 100644 --- a/app/javascript/mastodon/features/notifications/containers/column_settings_container.js +++ b/app/javascript/mastodon/features/notifications/containers/column_settings_container.js @@ -1,12 +1,20 @@ import { connect } from 'react-redux'; +import { defineMessages, injectIntl } from 'react-intl'; import ColumnSettings from '../components/column_settings'; import { changeSetting, saveSettings } from '../../../actions/settings'; +import { clearNotifications } from '../../../actions/notifications'; +import { openModal } from '../../../actions/modal'; + +const messages = defineMessages({ + clearMessage: { id: 'notifications.clear_confirmation', defaultMessage: 'Are you sure you want to permanently clear all your notifications?' }, + clearConfirm: { id: 'notifications.clear', defaultMessage: 'Clear notifications' }, +}); const mapStateToProps = state => ({ settings: state.getIn(['settings', 'notifications']), }); -const mapDispatchToProps = dispatch => ({ +const mapDispatchToProps = (dispatch, { intl }) => ({ onChange (key, checked) { dispatch(changeSetting(['notifications', ...key], checked)); @@ -16,6 +24,14 @@ const mapDispatchToProps = dispatch => ({ dispatch(saveSettings()); }, + onClear () { + dispatch(openModal('CONFIRM', { + message: intl.formatMessage(messages.clearMessage), + confirm: intl.formatMessage(messages.clearConfirm), + onConfirm: () => dispatch(clearNotifications()), + })); + }, + }); -export default connect(mapStateToProps, mapDispatchToProps)(ColumnSettings); +export default injectIntl(connect(mapStateToProps, mapDispatchToProps)(ColumnSettings)); diff --git a/app/javascript/mastodon/features/notifications/index.js b/app/javascript/mastodon/features/notifications/index.js index e2e035620..b85d6d692 100644 --- a/app/javascript/mastodon/features/notifications/index.js +++ b/app/javascript/mastodon/features/notifications/index.js @@ -4,7 +4,7 @@ import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; -import { expandNotifications, clearNotifications, scrollTopNotifications } from '../../actions/notifications'; +import { expandNotifications, scrollTopNotifications } from '../../actions/notifications'; import { addColumn, removeColumn, moveColumn } from '../../actions/columns'; import NotificationContainer from './containers/notification_container'; import { ScrollContainer } from 'react-router-scroll'; @@ -13,13 +13,9 @@ import ColumnSettingsContainer from './containers/column_settings_container'; import { createSelector } from 'reselect'; import Immutable from 'immutable'; import LoadMore from '../../components/load_more'; -import ClearColumnButton from './components/clear_column_button'; -import { openModal } from '../../actions/modal'; const messages = defineMessages({ title: { id: 'column.notifications', defaultMessage: 'Notifications' }, - clearMessage: { id: 'notifications.clear_confirmation', defaultMessage: 'Are you sure you want to permanently clear all your notifications?' }, - clearConfirm: { id: 'notifications.clear', defaultMessage: 'Clear notifications' }, }); const getNotifications = createSelector([ @@ -79,16 +75,6 @@ class Notifications extends React.PureComponent { this.props.dispatch(expandNotifications()); } - handleClear = () => { - const { dispatch, intl } = this.props; - - dispatch(openModal('CONFIRM', { - message: intl.formatMessage(messages.clearMessage), - confirm: intl.formatMessage(messages.clearConfirm), - onConfirm: () => dispatch(clearNotifications()), - })); - } - handlePin = () => { const { columnId, dispatch } = this.props; diff --git a/app/javascript/mastodon/locales/ar.json b/app/javascript/mastodon/locales/ar.json index 1b0b0a464..bc3fc9666 100644 --- a/app/javascript/mastodon/locales/ar.json +++ b/app/javascript/mastodon/locales/ar.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "الترقيّات:", "notifications.column_settings.show": "إعرÙضها ÙÙŠ عمود", "notifications.column_settings.sound": "أصدر صوتا", - "notifications.settings": "إعدادات العمود", "onboarding.done": "تم", "onboarding.next": "التالي", "onboarding.page_five.public_timelines": "تÙعرَض ÙÙŠ الخيط الزمني المØلي المشاركات العامة المØررة من طر٠جميع المسجلين ÙÙŠ {domain}. أما ÙÙŠ الخيط الزمني الموØد ØŒ Ùإنه يتم عرض جميع المشاركات العامة المنشورة من طر٠جميع الأشخاص المتابَعين من طر٠أعضاء {domain}. هذه هي الخيوط الزمنية العامة، وهي طريقة رائعة للتعر٠أشخاص جدد.", diff --git a/app/javascript/mastodon/locales/bg.json b/app/javascript/mastodon/locales/bg.json index 11e6cf38a..07ecbe76d 100644 --- a/app/javascript/mastodon/locales/bg.json +++ b/app/javascript/mastodon/locales/bg.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "СподелÑниÑ:", "notifications.column_settings.show": "Покажи в колона", "notifications.column_settings.sound": "Play sound", - "notifications.settings": "Column settings", "onboarding.done": "Done", "onboarding.next": "Next", "onboarding.page_five.public_timelines": "The local timeline shows public posts from everyone on {domain}. The federated timeline shows public posts from everyone who people on {domain} follow. These are the Public Timelines, a great way to discover new people.", diff --git a/app/javascript/mastodon/locales/ca.json b/app/javascript/mastodon/locales/ca.json index 4b8199d17..af7a9f567 100644 --- a/app/javascript/mastodon/locales/ca.json +++ b/app/javascript/mastodon/locales/ca.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "Boosts:", "notifications.column_settings.show": "Mostrar en la columna", "notifications.column_settings.sound": "Reproduïr so", - "notifications.settings": "Ajustos de columna", "onboarding.done": "Fet", "onboarding.next": "Següent", "onboarding.page_five.public_timelines": "La lÃnia de temps local mostra missatges públics de tothom de {domain}. La lÃnia de temps federada mostra els missatges públics de tothom que la gent de {domain} segueix. Aquests són les lÃnies de temps Públiques, una bona manera de descobrir noves persones.", diff --git a/app/javascript/mastodon/locales/de.json b/app/javascript/mastodon/locales/de.json index cd0dc5451..cea72e6f5 100644 --- a/app/javascript/mastodon/locales/de.json +++ b/app/javascript/mastodon/locales/de.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "Geteilte Beiträge:", "notifications.column_settings.show": "In der Spalte anzeigen", "notifications.column_settings.sound": "Ton abspielen", - "notifications.settings": "Spalteneinstellungen", "onboarding.done": "Done", "onboarding.next": "Next", "onboarding.page_five.public_timelines": "The local timeline shows public posts from everyone on {domain}. The federated timeline shows public posts from everyone who people on {domain} follow. These are the Public Timelines, a great way to discover new people.", diff --git a/app/javascript/mastodon/locales/defaultMessages.json b/app/javascript/mastodon/locales/defaultMessages.json index 37f3c24dd..995d2da2b 100644 --- a/app/javascript/mastodon/locales/defaultMessages.json +++ b/app/javascript/mastodon/locales/defaultMessages.json @@ -828,10 +828,6 @@ }, { "descriptors": [ - { - "defaultMessage": "Column settings", - "id": "notifications.settings" - }, { "defaultMessage": "Desktop notifications", "id": "notifications.column_settings.alert" @@ -882,10 +878,6 @@ }, { "descriptors": [ - { - "defaultMessage": "Notifications", - "id": "column.notifications" - }, { "defaultMessage": "Are you sure you want to permanently clear all your notifications?", "id": "notifications.clear_confirmation" @@ -893,6 +885,15 @@ { "defaultMessage": "Clear notifications", "id": "notifications.clear" + } + ], + "path": "app/javascript/mastodon/features/notifications/containers/column_settings_container.json" + }, + { + "descriptors": [ + { + "defaultMessage": "Notifications", + "id": "column.notifications" }, { "defaultMessage": "You don't have any notifications yet. Interact with others to start the conversation.", diff --git a/app/javascript/mastodon/locales/en.json b/app/javascript/mastodon/locales/en.json index eddb68dd7..18b0dd667 100644 --- a/app/javascript/mastodon/locales/en.json +++ b/app/javascript/mastodon/locales/en.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "Boosts:", "notifications.column_settings.show": "Show in column", "notifications.column_settings.sound": "Play sound", - "notifications.settings": "Column settings", "onboarding.done": "Done", "onboarding.next": "Next", "onboarding.page_five.public_timelines": "The local timeline shows public posts from everyone on {domain}. The federated timeline shows public posts from everyone who people on {domain} follow. These are the Public Timelines, a great way to discover new people.", diff --git a/app/javascript/mastodon/locales/eo.json b/app/javascript/mastodon/locales/eo.json index 7d99a6294..ce619302b 100644 --- a/app/javascript/mastodon/locales/eo.json +++ b/app/javascript/mastodon/locales/eo.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "Diskonigoj:", "notifications.column_settings.show": "Montri en kolono", "notifications.column_settings.sound": "Play sound", - "notifications.settings": "Column settings", "onboarding.done": "Done", "onboarding.next": "Next", "onboarding.page_five.public_timelines": "The local timeline shows public posts from everyone on {domain}. The federated timeline shows public posts from everyone who people on {domain} follow. These are the Public Timelines, a great way to discover new people.", diff --git a/app/javascript/mastodon/locales/es.json b/app/javascript/mastodon/locales/es.json index 4599ee68d..26fd66682 100644 --- a/app/javascript/mastodon/locales/es.json +++ b/app/javascript/mastodon/locales/es.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "Retoots:", "notifications.column_settings.show": "Mostrar en columna", "notifications.column_settings.sound": "Play sound", - "notifications.settings": "Column settings", "onboarding.done": "Done", "onboarding.next": "Next", "onboarding.page_five.public_timelines": "The local timeline shows public posts from everyone on {domain}. The federated timeline shows public posts from everyone who people on {domain} follow. These are the Public Timelines, a great way to discover new people.", diff --git a/app/javascript/mastodon/locales/fa.json b/app/javascript/mastodon/locales/fa.json index ea73727b5..71cd87fee 100644 --- a/app/javascript/mastodon/locales/fa.json +++ b/app/javascript/mastodon/locales/fa.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "بازبوق‌ها:", "notifications.column_settings.show": "نمایش در ستون", "notifications.column_settings.sound": "پخش صدا", - "notifications.settings": "تنظیمات ستون", "onboarding.done": "پایان", "onboarding.next": "بعدی", "onboarding.page_five.public_timelines": "نوشته‌های Ù…ØÙ„ÛŒ یعنی نوشته‌های همهٔ کاربران {domain}. نوشته‌های همه‌جا یعنی نوشته‌های همهٔ کسانی Ú©Ù‡ کاربران {domain} آن‌ها را Ù¾ÛŒ می‌گیرند. این Ùهرست‌های عمومی راه خوبی برای یاÙتن کاربران تازه هستند.", diff --git a/app/javascript/mastodon/locales/fi.json b/app/javascript/mastodon/locales/fi.json index 1b21d9d33..269f22984 100644 --- a/app/javascript/mastodon/locales/fi.json +++ b/app/javascript/mastodon/locales/fi.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "Buusteja:", "notifications.column_settings.show": "Näytä sarakkeessa", "notifications.column_settings.sound": "Play sound", - "notifications.settings": "Column settings", "onboarding.done": "Done", "onboarding.next": "Next", "onboarding.page_five.public_timelines": "The local timeline shows public posts from everyone on {domain}. The federated timeline shows public posts from everyone who people on {domain} follow. These are the Public Timelines, a great way to discover new people.", diff --git a/app/javascript/mastodon/locales/fr.json b/app/javascript/mastodon/locales/fr.json index bf6e778ec..4fe23e01e 100644 --- a/app/javascript/mastodon/locales/fr.json +++ b/app/javascript/mastodon/locales/fr.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "Partages :", "notifications.column_settings.show": "Afficher dans la colonne", "notifications.column_settings.sound": "Émettre un son", - "notifications.settings": "Paramètres de la colonne", "onboarding.done": "Effectué", "onboarding.next": "Suivant", "onboarding.page_five.public_timelines": "Le fil public global affiche les posts de touâ‹…teâ‹…s les utilisateursâ‹…trices suiviâ‹…es par les membres de {domain}. Le fil public local est identique mais se limite aux utilisateursâ‹…trices de {domain}.", diff --git a/app/javascript/mastodon/locales/he.json b/app/javascript/mastodon/locales/he.json index 72e78293f..3203cb37d 100644 --- a/app/javascript/mastodon/locales/he.json +++ b/app/javascript/mastodon/locales/he.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "הדהודי×:", "notifications.column_settings.show": "הצגה בטור", "notifications.column_settings.sound": "שמע מופעל", - "notifications.settings": "הגדרות טור", "onboarding.done": "יצי××”", "onboarding.next": "הל××”", "onboarding.page_five.public_timelines": "ציר הזמן המקומי מר××” הודעות פומביות מכל ב××™ קהילת {domain}. ציר הזמן העולמי מר××” הודעות פומביות מ×ת ×›×™ מי שב××™ קהילת {domain} ×¢×•×§×‘×™× ×חריו. ×לו צירי הזמן הפומביי×, דרך × ×”×“×¨×ª לגלות ×× ×©×™× ×—×“×©×™×.", diff --git a/app/javascript/mastodon/locales/hr.json b/app/javascript/mastodon/locales/hr.json index a2fd87d9c..5c67d76b9 100644 --- a/app/javascript/mastodon/locales/hr.json +++ b/app/javascript/mastodon/locales/hr.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "Boosts:", "notifications.column_settings.show": "Prikaži u stupcu", "notifications.column_settings.sound": "Sviraj zvuk", - "notifications.settings": "Postavke rubrike", "onboarding.done": "UÄinjeno", "onboarding.next": "Sljedeća", "onboarding.page_five.public_timelines": "The local timeline prikazuje javne postove svih na {domain}. Federalni timeline pokazuje javne postove svih sa {domain} domena koje slijediÅ¡. To je sjajan naÄin da otkrijeÅ¡ nove ljude.", diff --git a/app/javascript/mastodon/locales/hu.json b/app/javascript/mastodon/locales/hu.json index da75aa465..ccd3a605a 100644 --- a/app/javascript/mastodon/locales/hu.json +++ b/app/javascript/mastodon/locales/hu.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "Boosts:", "notifications.column_settings.show": "Show in column", "notifications.column_settings.sound": "Play sound", - "notifications.settings": "Column settings", "onboarding.done": "Done", "onboarding.next": "Next", "onboarding.page_five.public_timelines": "The local timeline shows public posts from everyone on {domain}. The federated timeline shows public posts from everyone who people on {domain} follow. These are the Public Timelines, a great way to discover new people.", diff --git a/app/javascript/mastodon/locales/id.json b/app/javascript/mastodon/locales/id.json index 8626259f4..b42bebec7 100644 --- a/app/javascript/mastodon/locales/id.json +++ b/app/javascript/mastodon/locales/id.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "Boost:", "notifications.column_settings.show": "Tampilkan dalam kolom", "notifications.column_settings.sound": "Mainkan suara", - "notifications.settings": "Pengaturan kolom", "onboarding.done": "Selesei", "onboarding.next": "Selanjutnya", "onboarding.page_five.public_timelines": "Linimasa lokal menampilkan semua postingan publik dari semua orang di {domain}. Linimasa gabungan menampilkan postingan publik dari semua orang yang diikuti oleh {domain}. Ini semua adalah Linimasa Publik, cara terbaik untuk bertemu orang lain.", diff --git a/app/javascript/mastodon/locales/io.json b/app/javascript/mastodon/locales/io.json index 02fb101e2..1c32b37db 100644 --- a/app/javascript/mastodon/locales/io.json +++ b/app/javascript/mastodon/locales/io.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "Repeti:", "notifications.column_settings.show": "Montrar en kolumno", "notifications.column_settings.sound": "Plear sono", - "notifications.settings": "Aranji di kolumno", "onboarding.done": "Done", "onboarding.next": "Next", "onboarding.page_five.public_timelines": "The local timeline shows public posts from everyone on {domain}. The federated timeline shows public posts from everyone who people on {domain} follow. These are the Public Timelines, a great way to discover new people.", diff --git a/app/javascript/mastodon/locales/it.json b/app/javascript/mastodon/locales/it.json index f2dc145dc..8119c3ef9 100644 --- a/app/javascript/mastodon/locales/it.json +++ b/app/javascript/mastodon/locales/it.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "Post condivisi:", "notifications.column_settings.show": "Mostra in colonna", "notifications.column_settings.sound": "Riproduci suono", - "notifications.settings": "Impostazioni colonna", "onboarding.done": "Done", "onboarding.next": "Next", "onboarding.page_five.public_timelines": "The local timeline shows public posts from everyone on {domain}. The federated timeline shows public posts from everyone who people on {domain} follow. These are the Public Timelines, a great way to discover new people.", diff --git a/app/javascript/mastodon/locales/ja.json b/app/javascript/mastodon/locales/ja.json index b41fecee0..593ccba5d 100644 --- a/app/javascript/mastodon/locales/ja.json +++ b/app/javascript/mastodon/locales/ja.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "ブースト", "notifications.column_settings.show": "カラムã«è¡¨ç¤º", "notifications.column_settings.sound": "通知音をå†ç”Ÿ", - "notifications.settings": "カラムè¨å®š", "onboarding.done": "完了", "onboarding.next": "次ã¸", "onboarding.page_five.public_timelines": "連åˆã‚¿ã‚¤ãƒ ラインã§ã¯{domain}ã®äººãŒãƒ•ã‚©ãƒãƒ¼ã—ã¦ã„ã‚‹Mastodon全体ã§ã®å…¬é–‹æŠ•ç¨¿ã‚’表示ã—ã¾ã™ã€‚åŒã˜ããƒãƒ¼ã‚«ãƒ«ã‚¿ã‚¤ãƒ ラインã§ã¯{domain}ã®ã¿ã®å…¬é–‹æŠ•ç¨¿ã‚’表示ã—ã¾ã™ã€‚", diff --git a/app/javascript/mastodon/locales/nl.json b/app/javascript/mastodon/locales/nl.json index 224dc6f38..ff0abfef6 100644 --- a/app/javascript/mastodon/locales/nl.json +++ b/app/javascript/mastodon/locales/nl.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "Boosts:", "notifications.column_settings.show": "In kolom tonen", "notifications.column_settings.sound": "Geluid afspelen", - "notifications.settings": "Kolom-instellingen", "onboarding.done": "Klaar", "onboarding.next": "Volgende", "onboarding.page_five.public_timelines": "De lokale tijdlijn toont openbare toots van iedereen op {domain}. De globale tijdlijn toont openbare toots van iedereen die door gebruikers van {domain} worden gevolgd, dus ook mensen van andere Mastodon-servers. Dit zijn de openbare tijdlijnen en vormen een uitstekende manier om nieuwe mensen te ontdekken.", diff --git a/app/javascript/mastodon/locales/no.json b/app/javascript/mastodon/locales/no.json index a495e367d..3e30db47d 100644 --- a/app/javascript/mastodon/locales/no.json +++ b/app/javascript/mastodon/locales/no.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "Fremhevet:", "notifications.column_settings.show": "Vis i kolonne", "notifications.column_settings.sound": "Spill lyd", - "notifications.settings": "Kolonneinstillinger", "onboarding.done": "Ferdig", "onboarding.next": "Neste", "onboarding.page_five.public_timelines": "Den lokale tidslinjen viser offentlige poster fra alle pÃ¥ {domain}. Felles tidslinje viser offentlige poster fra alle som brukere pÃ¥ {domain} følger. Dette er de offentlige tidslinjene, et fint sted Ã¥ oppdage nye brukere.", diff --git a/app/javascript/mastodon/locales/oc.json b/app/javascript/mastodon/locales/oc.json index f6fc1b515..c96923f0a 100644 --- a/app/javascript/mastodon/locales/oc.json +++ b/app/javascript/mastodon/locales/oc.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "Partatges :", "notifications.column_settings.show": "Mostrar dins la colomna", "notifications.column_settings.sound": "Emetre un son", - "notifications.settings": "Paramètres de la colomna", "onboarding.done": "Fach", "onboarding.next": "Seguent", "onboarding.page_five.public_timelines": "Lo flux local mòstra los estatuts publics del monde de vòstra intà ncia, aquà {domain}. Lo flux federat mòstra los estatuts publics de tot lo mond sus {domain} sègon. Son los fluxes publics, un bon biais de trobar de mond.", diff --git a/app/javascript/mastodon/locales/pl.json b/app/javascript/mastodon/locales/pl.json index 11820c764..f40da50d5 100644 --- a/app/javascript/mastodon/locales/pl.json +++ b/app/javascript/mastodon/locales/pl.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "Podbili:", "notifications.column_settings.show": "Pokaż w kolumnie", "notifications.column_settings.sound": "Odtwarzaj dźwiÄ™k", - "notifications.settings": "Ustawienia kolumny", "onboarding.done": "Gotowe", "onboarding.next": "Dalej", "onboarding.page_five.public_timelines": "Lokalna oÅ› czasu zawiera wszystkie publiczne wpisy z {domain}. Federalna oÅ› czasu wyÅ›wietla publiczne wpisy obserwowanych przez czÅ‚onków {domain}. SÄ… to publiczne osie czasu – najlepszy sposób na poznanie nowych osób.", diff --git a/app/javascript/mastodon/locales/pt.json b/app/javascript/mastodon/locales/pt.json index 5e5834a0e..31075d658 100644 --- a/app/javascript/mastodon/locales/pt.json +++ b/app/javascript/mastodon/locales/pt.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "Partilhas:", "notifications.column_settings.show": "Mostrar nas colunas", "notifications.column_settings.sound": "Reproduzir som", - "notifications.settings": "Parâmetros da listagem de Notificações", "onboarding.done": "Done", "onboarding.next": "Next", "onboarding.page_five.public_timelines": "The local timeline shows public posts from everyone on {domain}. The federated timeline shows public posts from everyone who people on {domain} follow. These are the Public Timelines, a great way to discover new people.", diff --git a/app/javascript/mastodon/locales/ru.json b/app/javascript/mastodon/locales/ru.json index 950089b52..7d758b74a 100644 --- a/app/javascript/mastodon/locales/ru.json +++ b/app/javascript/mastodon/locales/ru.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "ПродвижениÑ:", "notifications.column_settings.show": "Показывать в колонке", "notifications.column_settings.sound": "Проигрывать звук", - "notifications.settings": "ÐаÑтройки колонки", "onboarding.done": "Готово", "onboarding.next": "Далее", "onboarding.page_five.public_timelines": "Ð›Ð¾ÐºÐ°Ð»ÑŒÐ½Ð°Ñ Ð»ÐµÐ½Ñ‚Ð° показывает публичные поÑÑ‚Ñ‹ вÑех пользователей {domain}. Ð“Ð»Ð¾Ð±Ð°Ð»ÑŒÐ½Ð°Ñ Ð»ÐµÐ½Ñ‚Ð° показывает публичные поÑÑ‚Ñ‹ вÑех людей, на которых подпиÑаны пользователи {domain}. Ðто - публичные ленты, отличный ÑпоÑоб найти новые знакомÑтва.", diff --git a/app/javascript/mastodon/locales/th.json b/app/javascript/mastodon/locales/th.json index eddb68dd7..18b0dd667 100644 --- a/app/javascript/mastodon/locales/th.json +++ b/app/javascript/mastodon/locales/th.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "Boosts:", "notifications.column_settings.show": "Show in column", "notifications.column_settings.sound": "Play sound", - "notifications.settings": "Column settings", "onboarding.done": "Done", "onboarding.next": "Next", "onboarding.page_five.public_timelines": "The local timeline shows public posts from everyone on {domain}. The federated timeline shows public posts from everyone who people on {domain} follow. These are the Public Timelines, a great way to discover new people.", diff --git a/app/javascript/mastodon/locales/tr.json b/app/javascript/mastodon/locales/tr.json index 46f30c9ef..1d9b14657 100644 --- a/app/javascript/mastodon/locales/tr.json +++ b/app/javascript/mastodon/locales/tr.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "Boost’lar:", "notifications.column_settings.show": "Bildirimlerde göster", "notifications.column_settings.sound": "Ses çal", - "notifications.settings": "Bildirim ayarları", "onboarding.done": "Tamam", "onboarding.next": "Sıradaki", "onboarding.page_five.public_timelines": "Yerel zaman tüneli, bu sunucudaki herkesten gelen gönderileri gösterir.Federe zaman tüneli, kullanıcıların diÄŸer sunuculardan takip ettiÄŸi kiÅŸilerin herkese açık gönderilerini gösterir. Bunlar herkese açık zaman tünelleridir ve yeni insanlarla tanışmak için harika yerlerdir. The federated timeline shows public posts from everyone who people on {domain} follow. These are the Public Timelines, a great way to discover new ", diff --git a/app/javascript/mastodon/locales/uk.json b/app/javascript/mastodon/locales/uk.json index 3fcbf0973..75266532a 100644 --- a/app/javascript/mastodon/locales/uk.json +++ b/app/javascript/mastodon/locales/uk.json @@ -107,7 +107,6 @@ "notifications.column_settings.reblog": "Передмухи:", "notifications.column_settings.show": "Показати в колонці", "notifications.column_settings.sound": "Відтворювати звук", - "notifications.settings": "ÐÐ°Ð»Ð°ÑˆÑ‚ÑƒÐ²Ð°Ð½Ð½Ñ ÐºÐ¾Ð»Ð¾Ð½ÐºÐ¸", "onboarding.done": "Готово", "onboarding.next": "Далі", "onboarding.page_five.public_timelines": "Локальна Ñтрічка показує публічні поÑти уÑÑ–Ñ… кориÑтувачів {domain}. Глобальна Ñтрічка показує публічні поÑти уÑÑ–Ñ… людей, на Ñких підпиÑані кориÑтувачі {domain}. Це публичні Ñтрічки, відмінний ÑпоÑіб знайти нових людей.", diff --git a/app/javascript/styles/components.scss b/app/javascript/styles/components.scss index bdd238b65..1156a17f9 100644 --- a/app/javascript/styles/components.scss +++ b/app/javascript/styles/components.scss @@ -106,22 +106,6 @@ } } -.column-icon-clear { - font-size: 16px; - padding: 15px; - position: absolute; - right: 48px; - top: 0; - cursor: pointer; - z-index: 2; -} - -@media screen and (min-width: 1025px) { - .column-icon-clear { - top: 10px; - } -} - .icon-button { display: inline-block; padding: 0; @@ -2238,6 +2222,12 @@ button.icon-button.active i.fa-retweet { margin-bottom: 10px; } +.column-settings__row { + .text-btn { + margin-bottom: 15px; + } +} + .modal-container__nav { align-items: center; background: rgba($base-overlay-background, 0.5); -- GitLab