diff --git a/client/src/app/admin/panel/staff/staff-editor.js b/client/src/app/admin/panel/staff/staff-editor.js index e4a269ee..be6b3d8b 100644 --- a/client/src/app/admin/panel/staff/staff-editor.js +++ b/client/src/app/admin/panel/staff/staff-editor.js @@ -139,8 +139,8 @@ class StaffEditor extends React.Component { case 'DEPARTMENTS': message = 'DEPARTMENTS_UPDATED'; break; - case 'EMAIL_SETTING': - message = 'EMAIL_SETTING_UPDATED'; + case 'SEND_EMAIL_ON_NEW_TICKET': + message = 'STAFF_UPDATED'; break; case 'FAIL': message = 'FAILED_EDIT_STAFF'; @@ -154,7 +154,7 @@ class StaffEditor extends React.Component { return (
-
this.setState({sendEmailOnNewTicket: form.sendEmailOnNewTicket})} onSubmit={this.onSubmit.bind(this, 'EMAIL_SETTING')}> + this.setState({sendEmailOnNewTicket: form.sendEmailOnNewTicket})} onSubmit={this.onSubmit.bind(this, 'SEND_EMAIL_ON_NEW_TICKET')}> {i18n('UPDATE')} diff --git a/client/src/data/languages/cn.js b/client/src/data/languages/cn.js index 8ebd5be4..e75fbb98 100644 --- a/client/src/data/languages/cn.js +++ b/client/src/data/languages/cn.js @@ -177,6 +177,7 @@ export default { 'TICKET_NUMBER': '票號', 'NEXT': '下一個', 'SEND_EMAIL_ON_NEW_TICKET': '电子邮件为每个新票', + 'STAFF_UPDATED': '工作人员已更新', 'UPDATE': '更新', 'CHART_CREATE_TICKET': '已創建門票', diff --git a/client/src/data/languages/de.js b/client/src/data/languages/de.js index 2586cf66..4d562aa0 100644 --- a/client/src/data/languages/de.js +++ b/client/src/data/languages/de.js @@ -177,6 +177,7 @@ export default { 'TICKET_NUMBER': 'Ticketnummer', 'NEXT': 'Nächster', 'SEND_EMAIL_ON_NEW_TICKET': 'Email für jedes neues Ticket', + 'STAFF_UPDATED': 'Mitarbeiter wurde aktualisiert', 'UPDATE': 'Aktualisierung', 'CHART_CREATE_TICKET': 'Tickets erstellt', diff --git a/client/src/data/languages/en.js b/client/src/data/languages/en.js index 1f373680..288c6fdc 100644 --- a/client/src/data/languages/en.js +++ b/client/src/data/languages/en.js @@ -177,6 +177,7 @@ export default { 'TICKET_NUMBER': 'Ticket number', 'NEXT': 'Next', 'SEND_EMAIL_ON_NEW_TICKET': 'Send email on new ticket', + 'STAFF_UPDATED': 'Staff member updated', 'UPDATE': 'Update', 'CHART_CREATE_TICKET': 'Tickets created', diff --git a/client/src/data/languages/es.js b/client/src/data/languages/es.js index 13273cbb..99dba052 100644 --- a/client/src/data/languages/es.js +++ b/client/src/data/languages/es.js @@ -177,6 +177,7 @@ export default { 'TICKET_NUMBER': 'Número de Ticket', 'NEXT': 'Siguiente', 'SEND_EMAIL_ON_NEW_TICKET': 'Enviar email por cada nuevo ticket', + 'STAFF_UPDATED': 'Miembro de Staff actualizado', 'UPDATE': 'Actualizar', 'CHART_CREATE_TICKET': 'Tickets creados', diff --git a/client/src/data/languages/fr.js b/client/src/data/languages/fr.js index 4f012bbd..c5e1430e 100644 --- a/client/src/data/languages/fr.js +++ b/client/src/data/languages/fr.js @@ -177,6 +177,7 @@ export default { 'TICKET_NUMBER': 'Numéro de ticket', 'NEXT': 'Suivant', 'SEND_EMAIL_ON_NEW_TICKET': 'Envoyer un e-mail pour chaque nouveau ticket', + 'STAFF_UPDATED': 'Le membre du personnel a été mis à jour', 'UPDATE': 'Mettre à jour', 'CHART_CREATE_TICKET': 'Tickets créés', diff --git a/client/src/data/languages/in.js b/client/src/data/languages/in.js index 5f2092ef..e192f975 100644 --- a/client/src/data/languages/in.js +++ b/client/src/data/languages/in.js @@ -177,6 +177,7 @@ export default { 'TICKET_NUMBER': 'टिकट नंबर', 'NEXT': 'आगामी', 'SEND_EMAIL_ON_NEW_TICKET': 'एक ईमेल भेजने के लिए प्रत्येक नए टिकट', + 'STAFF_UPDATED': 'स्टाफ सदस्य को अद्यतन किया गया है', 'UPDATE': 'अद्यतन', 'CHART_CREATE_TICKET': 'टिकट बनाया', diff --git a/client/src/data/languages/jp.js b/client/src/data/languages/jp.js index 71edaf6e..e858d064 100644 --- a/client/src/data/languages/jp.js +++ b/client/src/data/languages/jp.js @@ -177,6 +177,7 @@ export default { 'TICKET_NUMBER': 'チケット番号', 'NEXT': '次', 'SEND_EMAIL_ON_NEW_TICKET': 'メールを送信毎に新しいチケット', + 'STAFF_UPDATED': 'スタッフメンバーが更新されました', 'UPDATE': '更新', 'CHART_CREATE_TICKET': '作成されたチケット', diff --git a/client/src/data/languages/pt.js b/client/src/data/languages/pt.js index 2b642104..21b84502 100644 --- a/client/src/data/languages/pt.js +++ b/client/src/data/languages/pt.js @@ -177,6 +177,7 @@ export default { 'TICKET_NUMBER': 'Número do bilhete', 'NEXT': 'Próximo', 'SEND_EMAIL_ON_NEW_TICKET': 'Enviar email para cada novo ticket', + 'STAFF_UPDATED': 'Membro da equipe foi atualizado', 'UPDATE': 'Actualizar', 'CHART_CREATE_TICKET': 'Ingressos criados', diff --git a/client/src/data/languages/ru.js b/client/src/data/languages/ru.js index 563a3ff1..c235a9dd 100644 --- a/client/src/data/languages/ru.js +++ b/client/src/data/languages/ru.js @@ -177,6 +177,7 @@ export default { 'TICKET_NUMBER': 'Номер билета', 'NEXT': 'следующий', 'SEND_EMAIL_ON_NEW_TICKET': 'Отправить письмо на новый билет', + 'STAFF_UPDATED': 'Сотрудник обновлен', 'UPDATE': 'Обновить', 'CHART_CREATE_TICKET': 'Билеты создано', diff --git a/client/src/data/languages/tr.js b/client/src/data/languages/tr.js index f8d2e0b7..5b3ca29f 100644 --- a/client/src/data/languages/tr.js +++ b/client/src/data/languages/tr.js @@ -177,6 +177,7 @@ export default { 'TICKET_NUMBER': 'Bilet numarası', 'NEXT': 'Sonraki', 'SEND_EMAIL_ON_NEW_TICKET': 'Yeni biletle e-posta gönder', + 'STAFF_UPDATED': 'Çalışanlar güncellendi', 'UPDATE': 'Güncelleştirme', 'CHART_CREATE_TICKET': 'Biletler oluşturuldu', diff --git a/client/src/reducers/session-reducer.js b/client/src/reducers/session-reducer.js index adc64843..03ad4797 100644 --- a/client/src/reducers/session-reducer.js +++ b/client/src/reducers/session-reducer.js @@ -123,7 +123,7 @@ class SessionReducer extends Reducer { let userId = sessionStore.getSessionData().userId; return _.extend({}, state, { - initDone: true, + initDone: true, logged: true, staff: userData.staff, userName: userData.name,