浏览代码

ref(toolbar): remove custom (old) InviteButton dropdown config

j8
Leonard Kim 7 年前
父节点
当前提交
4f157b71f3
共有 4 个文件被更改,包括 1 次插入64 次删除
  1. 0
    31
      css/_filmstrip.scss
  2. 1
    8
      css/_vertical_filmstrip_overrides.scss
  3. 0
    1
      interface_config.js
  4. 0
    24
      react/features/invite/functions.js

+ 0
- 31
css/_filmstrip.scss 查看文件

80
         &#filmstripLocalVideo {
80
         &#filmstripLocalVideo {
81
             align-self: flex-end;
81
             align-self: flex-end;
82
             display: block;
82
             display: block;
83
-
84
-            /**
85
-             * The invite button style.
86
-             */
87
-            .filmstrip__invite {
88
-                padding-bottom: 5px;
89
-                margin-left: 2px;
90
-            }
91
-
92
-            /**
93
-             * The invite button group style.
94
-             * TOFIX: use AtlasKit.ButtonGroup if it starts supporting different
95
-             * flex grow options for the buttons.
96
-             */
97
-            .invite-button-group {
98
-                display: inline-flex;
99
-                justify-content: space-between;
100
-                width: 100%;
101
-
102
-                & button {
103
-                    flex-grow: 1;
104
-                    flex-shrink: 1;
105
-                    overflow: hidden;
106
-                }
107
-
108
-                & > * {
109
-                    flex-grow: 0;
110
-                    flex-shrink: 0;
111
-                    margin-left: 2px;
112
-                }
113
-            }
114
         }
83
         }
115
 
84
 
116
         &.hidden {
85
         &.hidden {

+ 1
- 8
css/_vertical_filmstrip_overrides.scss 查看文件

75
         }
75
         }
76
 
76
 
77
         /**
77
         /**
78
-         * Re-styles the local Video and invite button to better fit the
79
-         * vertical filmstrip layout.
78
+         * Re-styles the local Video to better fit vertical filmstrip layout.
80
          */
79
          */
81
         #filmstripLocalVideo {
80
         #filmstripLocalVideo {
82
             align-self: initial;
81
             align-self: initial;
85
             flex-direction: column-reverse;
84
             flex-direction: column-reverse;
86
             height: auto;
85
             height: auto;
87
             justify-content: flex-start;
86
             justify-content: flex-start;
88
-
89
-            .filmstrip__invite {
90
-                padding-bottom: 0px;
91
-                padding-top: 5px;
92
-                z-index: $dropdownZ;
93
-            }
94
         }
87
         }
95
 
88
 
96
         /**
89
         /**

+ 0
- 1
interface_config.js 查看文件

50
     ],
50
     ],
51
 
51
 
52
     SETTINGS_SECTIONS: [ 'language', 'devices', 'moderator' ],
52
     SETTINGS_SECTIONS: [ 'language', 'devices', 'moderator' ],
53
-    INVITE_OPTIONS: [ 'invite', 'dialout', 'addtocall' ],
54
 
53
 
55
     // Determines how the video would fit the screen. 'both' would fit the whole
54
     // Determines how the video would fit the screen. 'both' would fit the whole
56
     // screen, 'height' would fit the original video height to the height of the
55
     // screen, 'height' would fit the original video height to the height of the

+ 0
- 24
react/features/invite/functions.js 查看文件

39
     return doGetJSON(url);
39
     return doGetJSON(url);
40
 }
40
 }
41
 
41
 
42
-/**
43
- * Get the position of the invite option in the interfaceConfig.INVITE_OPTIONS
44
- * list.
45
- *
46
- * @param {string} name - The invite option name.
47
- * @private
48
- * @returns {number} - The position of the option in the list.
49
- */
50
-export function getInviteOptionPosition(name: string): number {
51
-    return interfaceConfig.INVITE_OPTIONS.indexOf(name);
52
-}
53
-
54
 /**
42
 /**
55
  * Sends a post request to an invite service.
43
  * Sends a post request to an invite service.
56
  *
44
  *
84
     });
72
     });
85
 }
73
 }
86
 
74
 
87
-/**
88
- * Indicates if an invite option is enabled in the configuration.
89
- *
90
- * @param {string} name - The name of the option defined in
91
- * interfaceConfig.INVITE_OPTIONS.
92
- * @returns {boolean} - True to indicate that the given invite option is
93
- * enabled, false - otherwise.
94
- */
95
-export function isInviteOptionEnabled(name: string) {
96
-    return getInviteOptionPosition(name) !== -1;
97
-}
98
-
99
 /**
75
 /**
100
  * Sends an ajax request to a directory service.
76
  * Sends an ajax request to a directory service.
101
  *
77
  *

正在加载...
取消
保存