Explorar el Código

Change dialog button property keys

master
Bettenbuk Zoltan hace 6 años
padre
commit
ebdcbe122a

+ 2
- 2
react/features/base/dialog/components/web/StatelessDialog.js Ver fichero

@@ -239,7 +239,7 @@ class StatelessDialog extends Component<Props> {
239 239
                 key = 'cancel'
240 240
                 onClick = { this._onCancel }
241 241
                 type = 'button'>
242
-                { t(this.props.cancelTitleKey || 'dialog.Cancel') }
242
+                { t(this.props.cancelKey || 'dialog.Cancel') }
243 243
             </Button>
244 244
         );
245 245
     }
@@ -268,7 +268,7 @@ class StatelessDialog extends Component<Props> {
268 268
                 key = 'submit'
269 269
                 onClick = { this._onSubmit }
270 270
                 type = 'button'>
271
-                { t(this.props.okTitleKey || 'dialog.Ok') }
271
+                { t(this.props.okKey || 'dialog.Ok') }
272 272
             </Button>
273 273
         );
274 274
     }

+ 2
- 2
react/features/base/dialog/constants.js Ver fichero

@@ -10,7 +10,7 @@ export type DialogProps = {
10 10
     /**
11 11
      * Optional i18n key to change the cancel button title.
12 12
      */
13
-    cancelTitleKey: string,
13
+    cancelKey: string,
14 14
 
15 15
     /**
16 16
      * The React {@code Component} children which represents the dialog's body.
@@ -25,7 +25,7 @@ export type DialogProps = {
25 25
     /**
26 26
      * Optional i18n key to change the ok button title.
27 27
      */
28
-    okTitleKey: string,
28
+    okKey: string,
29 29
 
30 30
     /**
31 31
      * The handler for onCancel event.

+ 1
- 1
react/features/desktop-picker/components/DesktopPicker.js Ver fichero

@@ -189,7 +189,7 @@ class DesktopPicker extends PureComponent<Props, State> {
189 189
             <Dialog
190 190
                 isModal = { false }
191 191
                 okDisabled = { Boolean(!this.state.selectedSource.id) }
192
-                okTitleKey = 'dialog.Share'
192
+                okKey = 'dialog.Share'
193 193
                 onCancel = { this._onCloseModal }
194 194
                 onSubmit = { this._onSubmit }
195 195
                 titleKey = 'dialog.shareYourScreen'

+ 1
- 1
react/features/feedback/components/FeedbackDialog.web.js Ver fichero

@@ -228,7 +228,7 @@ class FeedbackDialog extends Component<Props, State> {
228 228
 
229 229
         return (
230 230
             <Dialog
231
-                okTitleKey = 'dialog.Submit'
231
+                okKey = 'dialog.Submit'
232 232
                 onCancel = { this._onCancel }
233 233
                 onSubmit = { this._onSubmit }
234 234
                 titleKey = 'feedback.rateExperience'>

+ 1
- 1
react/features/invite/components/add-people-dialog/web/AddPeopleDialog.js Ver fichero

@@ -176,7 +176,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog<Props, State> {
176 176
         return (
177 177
             <Dialog
178 178
                 okDisabled = { this._isAddDisabled() }
179
-                okTitleKey = 'addPeople.add'
179
+                okKey = 'addPeople.add'
180 180
                 onSubmit = { this._onSubmit }
181 181
                 titleKey = 'addPeople.title'
182 182
                 width = 'medium'>

+ 1
- 1
react/features/keyboard-shortcuts/components/KeyboardShortcutsDialog.web.js Ver fichero

@@ -42,7 +42,7 @@ class KeyboardShortcutsDialog extends Component<Props> {
42 42
 
43 43
         return (
44 44
             <Dialog
45
-                cancelTitleKey = { 'dialog.close' }
45
+                cancelKey = { 'dialog.close' }
46 46
                 submitDisabled = { true }
47 47
                 titleKey = 'keyboardShortcuts.keyboardShortcuts'
48 48
                 width = 'small'>

+ 1
- 1
react/features/local-recording/components/LocalRecordingInfoDialog.js Ver fichero

@@ -149,7 +149,7 @@ class LocalRecordingInfoDialog extends Component<Props, State> {
149 149
 
150 150
         return (
151 151
             <Dialog
152
-                cancelTitleKey = { 'dialog.close' }
152
+                cancelKey = { 'dialog.close' }
153 153
                 submitDisabled = { true }
154 154
                 titleKey = 'localRecording.dialogTitle'>
155 155
                 <div className = 'localrec-control'>

+ 1
- 1
react/features/recording/components/LiveStream/native/StartLiveStreamDialog.js Ver fichero

@@ -47,7 +47,7 @@ class StartLiveStreamDialog extends AbstractStartLiveStreamDialog<Props> {
47 47
     render() {
48 48
         return (
49 49
             <CustomSubmitDialog
50
-                okTitleKey = 'dialog.startLiveStreaming'
50
+                okKey = 'dialog.startLiveStreaming'
51 51
                 onCancel = { this._onCancel }
52 52
                 onSubmit = { this._onSubmit } >
53 53
                 <View style = { styles.startDialogWrapper }>

+ 2
- 2
react/features/recording/components/LiveStream/web/StartLiveStreamDialog.js Ver fichero

@@ -87,8 +87,8 @@ class StartLiveStreamDialog
87 87
 
88 88
         return (
89 89
             <Dialog
90
-                cancelTitleKey = 'dialog.Cancel'
91
-                okTitleKey = 'dialog.startLiveStreaming'
90
+                cancelKey = 'dialog.Cancel'
91
+                okKey = 'dialog.startLiveStreaming'
92 92
                 onCancel = { this._onCancel }
93 93
                 onSubmit = { this._onSubmit }
94 94
                 titleKey = 'liveStreaming.start'

+ 1
- 1
react/features/recording/components/LiveStream/web/StopLiveStreamDialog.js Ver fichero

@@ -27,7 +27,7 @@ class StopLiveStreamDialog extends AbstractStopLiveStreamDialog {
27 27
     render() {
28 28
         return (
29 29
             <Dialog
30
-                okTitleKey = 'dialog.stopLiveStreaming'
30
+                okKey = 'dialog.stopLiveStreaming'
31 31
                 onSubmit = { this._onSubmit }
32 32
                 titleKey = 'dialog.liveStreaming'
33 33
                 width = 'small'>

+ 1
- 1
react/features/recording/components/Recording/web/StartRecordingDialog.js Ver fichero

@@ -30,7 +30,7 @@ class StartRecordingDialog extends AbstractStartRecordingDialog {
30 30
         return (
31 31
             <Dialog
32 32
                 okDisabled = { !isTokenValid && _isDropboxEnabled }
33
-                okTitleKey = 'dialog.confirm'
33
+                okKey = 'dialog.confirm'
34 34
                 onSubmit = { this._onSubmit }
35 35
                 titleKey = 'dialog.recording'
36 36
                 width = 'small'>

+ 1
- 1
react/features/recording/components/Recording/web/StopRecordingDialog.js Ver fichero

@@ -29,7 +29,7 @@ class StopRecordingDialog extends AbstractStopRecordingDialog<Props> {
29 29
 
30 30
         return (
31 31
             <Dialog
32
-                okTitleKey = 'dialog.confirm'
32
+                okKey = 'dialog.confirm'
33 33
                 onSubmit = { this._onSubmit }
34 34
                 titleKey = 'dialog.recording'
35 35
                 width = 'small'>

+ 1
- 1
react/features/remote-control/components/RemoteControlAuthorizationDialog.js Ver fichero

@@ -63,7 +63,7 @@ class RemoteControlAuthorizationDialog extends Component<Props> {
63 63
     render() {
64 64
         return (
65 65
             <Dialog
66
-                okTitleKey = { 'dialog.allow' }
66
+                okKey = { 'dialog.allow' }
67 67
                 onCancel = { this._onCancel }
68 68
                 onSubmit = { this._onSubmit }
69 69
                 titleKey = 'dialog.remoteControlTitle'

+ 1
- 1
react/features/remote-video-menu/components/web/KickRemoteParticipantDialog.js Ver fichero

@@ -22,7 +22,7 @@ class KickRemoteParticipantDialog extends AbstractKickRemoteParticipantDialog {
22 22
     render() {
23 23
         return (
24 24
             <Dialog
25
-                okTitleKey = 'dialog.kickParticipantButton'
25
+                okKey = 'dialog.kickParticipantButton'
26 26
                 onSubmit = { this._onSubmit }
27 27
                 titleKey = 'dialog.kickParticipantTitle'
28 28
                 width = 'small'>

+ 1
- 1
react/features/remote-video-menu/components/web/MuteRemoteParticipantDialog.js Ver fichero

@@ -25,7 +25,7 @@ class MuteRemoteParticipantDialog extends AbstractMuteRemoteParticipantDialog {
25 25
     render() {
26 26
         return (
27 27
             <Dialog
28
-                okTitleKey = 'dialog.muteParticipantButton'
28
+                okKey = 'dialog.muteParticipantButton'
29 29
                 onSubmit = { this._onSubmit }
30 30
                 titleKey = 'dialog.muteParticipantTitle'
31 31
                 width = 'small'>

+ 1
- 1
react/features/speaker-stats/components/SpeakerStats.js Ver fichero

@@ -99,7 +99,7 @@ class SpeakerStats extends Component<Props, State> {
99 99
 
100 100
         return (
101 101
             <Dialog
102
-                cancelTitleKey = { 'dialog.close' }
102
+                cancelKey = { 'dialog.close' }
103 103
                 submitDisabled = { true }
104 104
                 titleKey = 'speakerStats.speakerStats'>
105 105
                 <div className = 'speaker-stats'>

+ 1
- 1
react/features/video-quality/components/VideoQualityDialog.web.js Ver fichero

@@ -21,7 +21,7 @@ export default class VideoQualityDialog extends Component {
21 21
         return (
22 22
             <Dialog
23 23
                 hideCancelButton = { true }
24
-                okTitleKey = 'dialog.done'
24
+                okKey = 'dialog.done'
25 25
                 titleKey = 'videoStatus.callQuality'
26 26
                 width = 'small'>
27 27
                 <VideoQualitySlider />

Loading…
Cancelar
Guardar