Просмотр исходного кода

Change dialog button property keys

j8
Bettenbuk Zoltan 6 лет назад
Родитель
Сommit
ebdcbe122a

+ 2
- 2
react/features/base/dialog/components/web/StatelessDialog.js Просмотреть файл

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

+ 2
- 2
react/features/base/dialog/constants.js Просмотреть файл

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

+ 1
- 1
react/features/desktop-picker/components/DesktopPicker.js Просмотреть файл

189
             <Dialog
189
             <Dialog
190
                 isModal = { false }
190
                 isModal = { false }
191
                 okDisabled = { Boolean(!this.state.selectedSource.id) }
191
                 okDisabled = { Boolean(!this.state.selectedSource.id) }
192
-                okTitleKey = 'dialog.Share'
192
+                okKey = 'dialog.Share'
193
                 onCancel = { this._onCloseModal }
193
                 onCancel = { this._onCloseModal }
194
                 onSubmit = { this._onSubmit }
194
                 onSubmit = { this._onSubmit }
195
                 titleKey = 'dialog.shareYourScreen'
195
                 titleKey = 'dialog.shareYourScreen'

+ 1
- 1
react/features/feedback/components/FeedbackDialog.web.js Просмотреть файл

228
 
228
 
229
         return (
229
         return (
230
             <Dialog
230
             <Dialog
231
-                okTitleKey = 'dialog.Submit'
231
+                okKey = 'dialog.Submit'
232
                 onCancel = { this._onCancel }
232
                 onCancel = { this._onCancel }
233
                 onSubmit = { this._onSubmit }
233
                 onSubmit = { this._onSubmit }
234
                 titleKey = 'feedback.rateExperience'>
234
                 titleKey = 'feedback.rateExperience'>

+ 1
- 1
react/features/invite/components/add-people-dialog/web/AddPeopleDialog.js Просмотреть файл

176
         return (
176
         return (
177
             <Dialog
177
             <Dialog
178
                 okDisabled = { this._isAddDisabled() }
178
                 okDisabled = { this._isAddDisabled() }
179
-                okTitleKey = 'addPeople.add'
179
+                okKey = 'addPeople.add'
180
                 onSubmit = { this._onSubmit }
180
                 onSubmit = { this._onSubmit }
181
                 titleKey = 'addPeople.title'
181
                 titleKey = 'addPeople.title'
182
                 width = 'medium'>
182
                 width = 'medium'>

+ 1
- 1
react/features/keyboard-shortcuts/components/KeyboardShortcutsDialog.web.js Просмотреть файл

42
 
42
 
43
         return (
43
         return (
44
             <Dialog
44
             <Dialog
45
-                cancelTitleKey = { 'dialog.close' }
45
+                cancelKey = { 'dialog.close' }
46
                 submitDisabled = { true }
46
                 submitDisabled = { true }
47
                 titleKey = 'keyboardShortcuts.keyboardShortcuts'
47
                 titleKey = 'keyboardShortcuts.keyboardShortcuts'
48
                 width = 'small'>
48
                 width = 'small'>

+ 1
- 1
react/features/local-recording/components/LocalRecordingInfoDialog.js Просмотреть файл

149
 
149
 
150
         return (
150
         return (
151
             <Dialog
151
             <Dialog
152
-                cancelTitleKey = { 'dialog.close' }
152
+                cancelKey = { 'dialog.close' }
153
                 submitDisabled = { true }
153
                 submitDisabled = { true }
154
                 titleKey = 'localRecording.dialogTitle'>
154
                 titleKey = 'localRecording.dialogTitle'>
155
                 <div className = 'localrec-control'>
155
                 <div className = 'localrec-control'>

+ 1
- 1
react/features/recording/components/LiveStream/native/StartLiveStreamDialog.js Просмотреть файл

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

+ 2
- 2
react/features/recording/components/LiveStream/web/StartLiveStreamDialog.js Просмотреть файл

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

+ 1
- 1
react/features/recording/components/LiveStream/web/StopLiveStreamDialog.js Просмотреть файл

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

+ 1
- 1
react/features/recording/components/Recording/web/StartRecordingDialog.js Просмотреть файл

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

+ 1
- 1
react/features/recording/components/Recording/web/StopRecordingDialog.js Просмотреть файл

29
 
29
 
30
         return (
30
         return (
31
             <Dialog
31
             <Dialog
32
-                okTitleKey = 'dialog.confirm'
32
+                okKey = 'dialog.confirm'
33
                 onSubmit = { this._onSubmit }
33
                 onSubmit = { this._onSubmit }
34
                 titleKey = 'dialog.recording'
34
                 titleKey = 'dialog.recording'
35
                 width = 'small'>
35
                 width = 'small'>

+ 1
- 1
react/features/remote-control/components/RemoteControlAuthorizationDialog.js Просмотреть файл

63
     render() {
63
     render() {
64
         return (
64
         return (
65
             <Dialog
65
             <Dialog
66
-                okTitleKey = { 'dialog.allow' }
66
+                okKey = { 'dialog.allow' }
67
                 onCancel = { this._onCancel }
67
                 onCancel = { this._onCancel }
68
                 onSubmit = { this._onSubmit }
68
                 onSubmit = { this._onSubmit }
69
                 titleKey = 'dialog.remoteControlTitle'
69
                 titleKey = 'dialog.remoteControlTitle'

+ 1
- 1
react/features/remote-video-menu/components/web/KickRemoteParticipantDialog.js Просмотреть файл

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

+ 1
- 1
react/features/remote-video-menu/components/web/MuteRemoteParticipantDialog.js Просмотреть файл

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

+ 1
- 1
react/features/speaker-stats/components/SpeakerStats.js Просмотреть файл

99
 
99
 
100
         return (
100
         return (
101
             <Dialog
101
             <Dialog
102
-                cancelTitleKey = { 'dialog.close' }
102
+                cancelKey = { 'dialog.close' }
103
                 submitDisabled = { true }
103
                 submitDisabled = { true }
104
                 titleKey = 'speakerStats.speakerStats'>
104
                 titleKey = 'speakerStats.speakerStats'>
105
                 <div className = 'speaker-stats'>
105
                 <div className = 'speaker-stats'>

+ 1
- 1
react/features/video-quality/components/VideoQualityDialog.web.js Просмотреть файл

21
         return (
21
         return (
22
             <Dialog
22
             <Dialog
23
                 hideCancelButton = { true }
23
                 hideCancelButton = { true }
24
-                okTitleKey = 'dialog.done'
24
+                okKey = 'dialog.done'
25
                 titleKey = 'videoStatus.callQuality'
25
                 titleKey = 'videoStatus.callQuality'
26
                 width = 'small'>
26
                 width = 'small'>
27
                 <VideoQualitySlider />
27
                 <VideoQualitySlider />

Загрузка…
Отмена
Сохранить